def METHOD_NAME(group, name=None):
    """Find all entry points in `group`, optionally filtered by `name`
    Yields:
        (EntryPoint, Distribution): entry point and distribution it belongs to
    """
    yield from ((ep, dist) for dist in ilm.distributions()
                for ep in dist.entry_points
                if ep.group == group and (name is None
                                          or ep.name.lower() == name.lower()))