code: def is_valid(self) -> bool:
          
          if self.bot.config.SESSION_EXPIRE_TIMEOUT and \
                  self._last_interaction and \
                  datetime.now() - self._last_interaction > \
                  self.bot.config.SESSION_EXPIRE_TIMEOUT:
              return False
          return True
docs: Check if the session is expired or not.