code: def _fetch_build_eggs(dist, requires):
      import pkg_resources  # Delay import to avoid unnecessary side-effects
  
      _DeprecatedInstaller.emit(stacklevel=3)
      _warn_wheel_not_available(dist)
  
      resolved_dists = pkg_resources.working_set.resolve(
          _reqs.parse(
              requires, pkg_resources.Requirement
          ),  # required for compatibility
          installer=partial(
              _fetch_build_egg_no_warn, dist
          ),  # avoid warning twice
          replace_conflicting=True,
      )
      for dist in resolved_dists:
          pkg_resources.working_set.add(dist, replace=True)
      return resolved_dists
  
file_path: catboost/contrib/python/setuptools/py3/setuptools/installer.py
imports: import glob
  import os
  import subprocess
  import sys
  import tempfile
  from distutils import log
  from distutils.errors import DistutilsError
  from functools import partial
  from .None import _reqs
  from .wheel import Wheel
  from .warnings import SetuptoolsDeprecationWarning
label_desc: Use image node_id 3 for calling a global function with example usage: _fetch_build_eggs(dist, requires) and returns: resolved_dists