code: def _setup_byte_compile(self):
      pkg_dir, dist = self.create_dist()
      cmd = install_lib(dist)
      cmd.compile = cmd.optimize = 1
  
      f = os.path.join(pkg_dir, "foo.py")
      self.write_file(f, "# python file")
      cmd.byte_compile([f])
      return pkg_dir
  
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 2 for calling the InstallLibTestCase obj's underlying member method code with example usage: obj._setup_byte_compile() and returns: pkg_dir