<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def subtract_months(self, months: int) -> datetime: """ Subtracts a number of months from the current value """

        self.value = self.value - relativedelta(months=months)
        return self.value