def METHOD_NAME(self, location: str) -> Iterator[BaseDistribution]:
    """Find eggs in a location.
    This actually uses the old *pkg_resources* backend. We likely want to
    deprecate this so we can eventually remove the *pkg_resources*
    dependency entirely. Before that, this should first emit a deprecation
    warning for some versions when using the fallback since importing
    *pkg_resources* is slow for those who don't need it.
    """
    if os.path.isdir(location):
        yield from self._find_eggs_in_dir(location)
    if zipfile.is_zipfile(location):
        yield from self._find_eggs_in_zip(location)