code: def get_optional(self, key: str,
                       default: Optional[Any] = None) -> Optional[Any]:
          
          return self.state.get(key, default)
docs: Simply get a argument with given key.
  
          Deprecated. Use `session.state.get()` instead.