def METHOD_NAME(cls, data_inputs, index_error_map):
    cleaned_inputs_map: dict = {}
    for index, data in enumerate(data_inputs):
        global_id = data.get("id")
        external_ref = data.get("external_reference")
        try:
            validate_one_of_args_is_in_mutation(
                "id",
                global_id,
                "external_reference",
                external_ref,
                use_camel_case=True,
            )
        except ValidationError as exc:
            index_error_map[index].append(
                AttributeValueBulkTranslateError(
                    message=exc.message,
                    code=AttributeValueTranslateErrorCode.INVALID.value,
                )
            )
            cleaned_inputs_map[index] = None
            continue
        if global_id:
            try:
                obj_type, id = from_global_id_or_error(
                    global_id, only_type="AttributeValue"
                )
            except GraphQLError as exc:
                index_error_map[index].append(
                    AttributeValueBulkTranslateError(
                        message=str(exc),
                        code=AttributeValueTranslateErrorCode.INVALID.value,
                    )
                )
                cleaned_inputs_map[index] = None
                continue
            data["id"] = id
        cleaned_inputs_map[index] = data
    return cleaned_inputs_map