def load_module_from_entry_points(entry_points, name):
    """Load module found via metadata entry points.

    Args:
        entry_points (list): List of entry points
        name (str): Entry point's name

    Returns:
        Loaded Python module
    """

    for entry_point in entry_points:
        if entry_point.name == name:
            return entry_point.load()
    return None