The general procedure for obtaining explicit expressions for all cohomologies of Berkovits' operator is suggested. It is demonstrated that calculation of BV integral for the classical Chern–Simons-like theory (Witten's OSFT-like theory) reproduces BV version of two-dimensional gauge model at the level of effective action. This model contains gauge field, scalars, fermions and some other fields. We prove that this model is an example of “singular” point from the perspective of the suggested method for cohomology evaluation. For arbitrary “regular” point the same technique results in AKSZ (Alexandrov, Kontsevich, Schwarz, Zaboronsky) version of Chern–Simons theory (BF theory) in accord with [N. Berkovits, Covariant quantization of the superparticle using pure spinors, JHEP 0109 (2001) 016, hep-th/0105050; N. Berkovits, ICTP lectures on covariant quantization of the superstring, hep-th/0209059; M. Movshev, A. Schwarz, On maximally supersymmetric Yang–Mills theories, Nucl. Phys. B 681 (2004) 324, hep-th/0311132; M. Movshev, A. Schwarz, Algebraic structure of Yang–Mills theory, hep-th/0404183].