def METHOD_NAME(mocker):
    fake_entrypoint = FakeEntryPoint()
    fake_distribution = FakeDistribution(
        entry_points=(fake_entrypoint,),
        metadata={"name": fake_entrypoint.name},
        version="0.1",
    )
    mocker.patch(
        "pluggy._manager.importlib_metadata.distributions",
        return_value=[fake_distribution],
    )
    return fake_distribution