code: def test_cwd(self):
      with os_helper.change_cwd(self.directory):
          py_compile.compile(
              os.path.basename(self.source_path),
              os.path.basename(self.pyc_path),
          )
      self.assertTrue(os.path.exists(self.pyc_path))
      self.assertFalse(os.path.exists(self.cache_path))
  
imports: import functools
  import importlib.util
  import os
  import py_compile
  import shutil
  import stat
  import subprocess
  import sys
  import tempfile
  import unittest
  from test import support
  from test.support import os_helper, script_helper
label_desc: Use image node_id 7 for calling the PyCompileTestsBase obj's underlying member method code with example usage: obj.test_cwd() without return types