def discover_post_import_hooks(group):
    try:
        import pkg_resources
    except __HOLE__:
        return

    for entrypoint in pkg_resources.iter_entry_points(group=group):
        callback = _create_import_hook_from_entrypoint(entrypoint)
        register_post_import_hook(callback, entrypoint.name)

# Indicate that a module has been loaded. Any post import hooks which
# were registered against the target module will be invoked. If an
# exception is raised in any of the post import hooks, that will cause
# the import of the target module to fail.
dataset/ETHPy150Open GrahamDumpleton/wrapt/src/wrapt/importer.py/discover_post_import_hooks