def _search_paths(cls, name, paths):
        """Find metadata directories in paths heuristically."""
        prepared = Prepared(name)
        return itertools.chain.from_iterable(
            path.search(prepared) for path in map(FastPath, paths)
        )
Find metadata directories in paths heuristically.
product/gradle-plugin/src/main/python/setuptools/_vendor/importlib_metadata/__init__.py