def METHOD_NAME(input_data):
    expiry_date = input_data.get("expiry_date")
    if expiry_date and not is_date_in_future(expiry_date):
        raise ValidationError(
            {
                "expiry_date": ValidationError(
                    "Expiry date cannot be in the past.",
                    code=GiftCardErrorCode.INVALID.value,
                )
            }
        )