def is_expired(self):
        """Check whether the credit card is expired or not"""
        return datetime.date.today() > datetime.date(self.year, self.month, calendar.monthrange(self.year, self.month)[1])
dataset/ETHPy150Open agiliq/merchant/billing/utils/credit_card.py/CreditCard.is_expired/original