def METHOD_NAME(cmd,
                       client,
                       registry_name,
                       scope_map_name,
                       resource_group_name=None):
    resource_group_name = get_resource_group_name_by_registry_name(cmd.cli_ctx, registry_name, resource_group_name)
    return client.get(
        resource_group_name,
        registry_name,
        scope_map_name
    )