def METHOD_NAME(cleaned_input):
    error = check_for_duplicates(cleaned_input, "add_tags", "remove_tags", "tags")
    if error:
        error.code = GiftCardErrorCode.DUPLICATED_INPUT_ITEM.value
        raise ValidationError({"tags": error})