async def METHOD_NAME(
    initialized_app: FastAPI,
    user: dict[str, Any],
    with_internet_access: bool,
):
    groups_extra_properties = cast(
        GroupsExtraPropertiesRepository,
        get_repository(initialized_app, GroupsExtraPropertiesRepository),
    )
    allow_internet_access: bool = await groups_extra_properties.has_internet_access(
        user_id=user["id"], product_name=user["product_name"]
    )
    assert allow_internet_access is with_internet_access