code: def register_finders():
    
  
    # If the previous finder is set, then we've already monkeypatched, so skip.
    global __PREVIOUS_FINDER
    if __PREVIOUS_FINDER:
      return
  
    # save previous finder so that it can be restored
    previous_finder = _get_finder(zipimport.zipimporter)
    assert previous_finder, 'This appears to be using an incompatible setuptools.'
  
    # Enable finding zipped wheels.
    pkg_resources.register_finder(
        zipimport.zipimporter, ChainedFinder.of(pkg_resources.find_eggs_in_zip, find_wheels_in_zip))
  
    # append the wheel finder
    _add_finder(pkgutil.ImpImporter, find_wheels_on_path)
  
    if importlib_machinery is not None:
      _add_finder(importlib_machinery.FileFinder, find_wheels_on_path)
  
    __PREVIOUS_FINDER = previous_finder
docs: Register finders necessary for PEX to function properly.