def get_entry_points(group: str) -> t.Iterable[EntryPoint]:
    """A compatible version of importlib.metadata.entry_points for Python < 3.10"""
    try:
        return entry_points(group=group)
    except TypeError:
        # For Python < 3.10, entry_points() does not accept group argument
        return entry_points().get(group, [])
A compatible version of importlib.metadata.entry_points for Python < 3.10
src/bentoml_cli/utils.py