def finder_for_path(path):
result = None<EOL>pkgutil.get_importer(path)<EOL>loader = sys.path_importer_cache.get(path)<EOL>finder = _finder_registry.get(type(loader))<EOL>if finder:<EOL><INDENT>module = _dummy_module<EOL>module.__file__ = os.path.join(path, '<STR_LIT>')<EOL>module.__loader__ = loader<EOL>result = finder(module)<EOL><DEDENT>return result<EOL>
Return a resource finder for a path, which should represent a container.

:param path: The path.
:return: A :class:`ResourceFinder` instance for the path.