def METHOD_NAME(args):
    if has_value(args.id):
        data = parse_proxy_resource_id(args.id.to_serialized_data())
        args.name = data["child_name_1"]
        args.resource_group = data["resource_group"]
        args.scope_name = data["name"]
    if not all([has_value(args.name), has_value(args.resource_group), has_value(args.scope_name)]):
        err_msg = "Incorrect usage. Please provide [--id ID] or [--n NAME -g NAME --scope-name NAME]."
        raise ArgumentUsageError(error_msg=err_msg)