class_docstr: This test only works when python itself is a dll/shared library
class_docstr_tok: ["This","test","only","works","when","python","itself","is","a","dll\/shared","library"]
code: def test_optimizeflag(self):
      # This test accesses the Py_OptimizeFlag intger, which is
      # exported by the Python dll.
  
      # It's value is set depending on the -O and -OO flags:
      # if not given, it is 0 and __debug__ is 1.
      # If -O is given, the flag is 1, for -OO it is 2.
      # docstrings are also removed in the latter case.
      opt = c_int.in_dll(pythonapi, "Py_OptimizeFlag").value
      if __debug__:
          self.assertEqual(opt, 0)
      elif ValuesTestCase.__doc__ is not None:
          self.assertEqual(opt, 1)
      else:
          self.assertEqual(opt, 2)
  
file_path: catboost/contrib/tools/python/src/Lib/ctypes/test/test_values.py
imports: import unittest
  import sys
  from ctypes import *
  import _ctypes_test
label_desc: Use image node_id 1 for calling the PythonValuesTestCase obj's underlying member method code with example usage: obj.test_optimizeflag() without return types