code: def _subtract_timedelta(self, delta):
          
          if isinstance(delta, pendulum.Duration):
              return self.subtract(
                  years=delta.years,
                  months=delta.months,
                  weeks=delta.weeks,
                  days=delta.remaining_days,
              )
  
          return self.subtract(days=delta.days)
docs: Remove timedelta duration from the instance.
  
          :param delta: The timedelta instance
          :type delta: pendulum.Duration or datetime.timedelta
  
          :rtype: Date