code: def run_distutils(args):
      base_dir, ext_modules = args
      script_args = ["build_ext", "-i"]
      cwd = os.getcwd()
      temp_dir = None
      try:
          if base_dir:
              os.chdir(base_dir)
              temp_dir = tempfile.mkdtemp(dir=base_dir)
              script_args.extend(["--build-temp", temp_dir])
          setup(
              script_name="setup.py",
              script_args=script_args,
              ext_modules=ext_modules,
          )
      finally:
          if base_dir:
              os.chdir(cwd)
              if temp_dir and os.path.isdir(temp_dir):
                  shutil.rmtree(temp_dir)
  
imports: from __future__ import absolute_import
  import os
  import shutil
  import tempfile
  from distutils.core import setup
  from .Dependencies import cythonize, extended_iglob
  from ..Utils import is_package_dir
  from ..Compiler import Options
label_desc: Use image node_id 6 for calling a global function with example usage: run_distutils(args) without return types