code: async def pexpire(self, name, time):
          
          if isinstance(time, datetime.timedelta):
              ms = int(time.microseconds / 1000)
              time = (time.seconds + time.days * 24 * 3600) * 1000 + ms
          return await self.execute_command('PEXPIRE', name, time)
docs: Set an expire flag on key ``name`` for ``time`` milliseconds.
          ``time`` can be represented by an integer or a Python timedelta
          object.