code: def test_dont_write_bytecode(self):
      # makes sure byte_compile is not used
      pkg_dir, dist = self.create_dist()
      cmd = install_lib(dist)
      cmd.compile = 1
      cmd.optimize = 1
  
      old_dont_write_bytecode = sys.dont_write_bytecode
      sys.dont_write_bytecode = True
      try:
          cmd.byte_compile([])
      finally:
          sys.dont_write_bytecode = old_dont_write_bytecode
  
      self.assertIn("byte-compiling is disabled", self.logs[0][1])
  
file_path: catboost/contrib/tools/python/src/Lib/distutils/tests/test_install_lib.py
imports: import os
  import sys
  import unittest
  from distutils.command.install_lib import install_lib
  from distutils.extension import Extension
  from distutils.tests import support
  from distutils.errors import DistutilsOptionError
  from test.test_support import run_unittest
label_desc: Use image node_id 6 for calling the InstallLibTestCase obj's underlying member method code with example usage: obj.test_dont_write_bytecode() without return types