code: def chdir(new_dir):
      old_dir = os.getcwd()
      try:
          os.chdir(new_dir)
          sys.path.insert(0, new_dir)
          yield
      finally:
          del sys.path[0]
          os.chdir(old_dir)
  
imports: import os
  import subprocess
  import sys
  import contextlib
  from distutils.command.build_ext import build_ext
  from distutils.sysconfig import get_python_inc
  import distutils.util
  from distutils import ccompiler, msvccompiler
  from setuptools import Extension, setup, find_packages
label_desc: Use image node_id 2 for calling a global function with example usage: chdir(new_dir) without return types