code: async def psetex(self, name, time_ms, value):
          
          if isinstance(time_ms, datetime.timedelta):
              ms = int(time_ms.microseconds / 1000)
              time_ms = (time_ms.seconds + time_ms.days * 24 * 3600) * 1000 + ms
          return await self.execute_command('PSETEX', name, time_ms, value)
docs: Set the value of key ``name`` to ``value`` that expires in ``time_ms``
          milliseconds. ``time_ms`` can be represented by an integer or a Python
          timedelta object