code: def _install_setup_requires(attrs):
      # Note: do not use `setuptools.Distribution` directly, as
      # our PEP 517 backend patch `distutils.core.Distribution`.
      class MinimalDistribution(distutils.core.Distribution):
          """
          A minimal version of a distribution for supporting the
          fetch_build_eggs interface.
          """
  
          def __init__(self, attrs):
              _incl = "dependency_links", "setup_requires"
              filtered = {k: attrs[k] for k in set(_incl) & set(attrs)}
              distutils.core.Distribution.__init__(self, filtered)
  
          def finalize_options(self):
              """
              Disable finalize_options to avoid building the working set.
              Ref #2158.
              """
  
      dist = MinimalDistribution(attrs)
  
      # Honor setup.cfg's options.
      dist.parse_config_files(ignore_option_errors=True)
      if dist.setup_requires:
          dist.fetch_build_eggs(dist.setup_requires)
  
imports: import os
  import sys
  import functools
  import distutils.core
  import distutils.filelist
  import re
  from distutils.errors import DistutilsOptionError
  from distutils.util import convert_path
  from fnmatch import fnmatchcase
  from ._deprecation_warning import SetuptoolsDeprecationWarning
  from setuptools.extern.six import PY3, string_types
  from setuptools.extern.six.moves import filter, map
  import setuptools.version
  from setuptools.extension import Extension
  from setuptools.dist import Distribution, Feature
  from setuptools.depends import Require
  from .None import monkey
label_desc: Use image node_id 1 for calling a global function with example usage: _install_setup_requires(attrs) without return types