def METHOD_NAME(cmd, client,
                        resource_group_name=None,
                        include_definition=None):
    sub_id = _get_subscription_id_from_cmd(cmd)
    scope = _get_scope(sub_id, resource_group_name)
    return client.list(
        scope=scope,
        expand_registration_definition=include_definition)