class_docstr: SessionManagers are responsible for encapsulating all session lifecycle behavior
  that the Streamlit Runtime may care about.
  
  A SessionManager must define the following required methods:
    * __init__
    * connect_session
    * close_session
    * get_session_info
    * list_sessions
  
  SessionManager implementations may also choose to define the notions of active and
  inactive sessions. The precise definitions of active/inactive are left to the
  concrete implementation. SessionManagers that wish to differentiate between active
  and inactive sessions should have the required methods listed above operate on *all*
  sessions. Additionally, they should define the following methods for working with
  active sessions:
    * disconnect_session
    * get_active_session_info
    * is_active_session
    * list_active_sessions
  
  When active session-related methods are left undefined, their default
  implementations are the naturally corresponding required methods.
  
  The Runtime, unless there's a good reason to do otherwise, should generally work
  with the active-session versions of a SessionManager's methods. There isn't currently
  a need for us to be able to operate on inactive sessions stored in SessionStorage
  outside of the SessionManager itself. However, it's highly likely that we'll
  eventually have to do so, which is why the abstractions allow for this now.
  
  Notes
  -----
  Threading: All SessionManager methods are *not* threadsafe -- they must be called
  from the runtime's eventloop thread.
docstr: Return the SessionInfo for all sessions managed by this SessionManager.
  
  Returns
  -------
  List[SessionInfo]
code: def list_sessions(self) -> List[SessionInfo]:
      """Return the SessionInfo for all sessions managed by this SessionManager.
  
      Returns
      -------
      List[SessionInfo]
      """
      raise NotImplementedError
  
imports: from abc import abstractmethod
  from dataclasses import dataclass
  from typing import Callable, Dict, List, Optional, cast
  from typing_extensions import Protocol
  from streamlit.proto.ForwardMsg_pb2 import ForwardMsg
  from streamlit.runtime.app_session import AppSession
  from streamlit.runtime.script_data import ScriptData
  from streamlit.runtime.scriptrunner.script_cache import ScriptCache
  from streamlit.runtime.uploaded_file_manager import UploadedFileManager
label_desc: Use image node_id 5 for calling the SessionManager obj's underlying member method code with example usage: obj.list_sessions() without return types