def entrypoints(namespace):
    'Return setuptools entrypoints for namespace.'
    if (sys.version_info >= (3, 10)):
        entry_points = importlib_metadata.entry_points(group=namespace)
    else:
        entry_points = importlib_metadata.entry_points().get(namespace, [])
    return ((ep, ep.load()) for ep in entry_points)
Return setuptools entrypoints for namespace.
def entrypoints(namespace):
    
    if (sys.version_info >= (3, 10)):
        entry_points = importlib_metadata.entry_points(group=namespace)
    else:
        entry_points = importlib_metadata.entry_points().get(namespace, [])
    return ((ep, ep.load()) for ep in entry_points)