code: def _get_session():
      session_id = get_report_ctx().session_id
      session_info = Server.get_current()._get_session_info(session_id)
  
      if session_info is None:
          raise RuntimeError(
              "Couldn't get your Streamlit Session object."
          )
  
      return session_info.session
  
file_path: promptsource/promptsource/session.py
imports: from streamlit.hashing import _CodeHasher
  from streamlit.report_thread import get_report_ctx
  from streamlit.server.server import Server
label_desc: Use image node_id 1 for calling a global function with example usage: _get_session() and returns: session_info