code: def _open_setup_script(setup_script):
      if not os.path.exists(setup_script):
          # Supply a default setup.py
          return io.StringIO("from setuptools import setup; setup()")
  
      return getattr(tokenize, "open", open)(setup_script)
  
imports: import io
  import os
  import sys
  import tokenize
  import shutil
  import contextlib
  import setuptools
  import distutils
  from setuptools.py31compat import TemporaryDirectory
  from pkg_resources import parse_requirements
  from pkg_resources.py31compat import makedirs
label_desc: Use image node_id 4 for calling a global function with example usage: _open_setup_script(setup_script) and returns: getattr, io