code: def is_session_active(self):
          
  
          if self.session_context is None:
              return False
  
          time_now = datetime.datetime.now()
          time_to_expiry = self.session_context.expiry_time - time_now
          time_to_expiry_minimum = datetime.timedelta(
              seconds=self._TIME_TO_SESSION_EXPIRY_MINIMUM_SECONDS
          )
  
          return time_to_expiry > time_to_expiry_minimum
docs: :rtype: bool