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)}
              super().__init__(filtered)
              # Prevent accidentally triggering discovery with incomplete set of attrs
              self.set_defaults._disable()
  
          def _get_project_config_files(self, filenames=None):
              """Ignore ``pyproject.toml``, they are not related to setup_requires"""
              try:
                  cfg, toml = super()._split_standard_project_metadata(
                      filenames
                  )
                  return cfg, ()
              except Exception:
                  return filenames, ()
  
          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:
          _fetch_build_eggs(dist)
  
imports: import functools
  import os
  import re
  import _distutils_hack.override
  import distutils.core
  from distutils.errors import DistutilsOptionError
  from distutils.util import convert_path
  from .None import logging, monkey
  from .None import version
  from .depends import Require
  from .discovery import PackageFinder, PEP420PackageFinder
  from .dist import Distribution
  from .extension import Extension
  from .warnings import SetuptoolsDeprecationWarning
label_desc: Use image node_id 1 for calling a global function with example usage: _install_setup_requires(attrs) and returns: cfg,  , filenames,  