code: def _get_state(hash_funcs=None):
      session = _get_session()
  
      if not hasattr(session, "_custom_session_state"):
          session._custom_session_state = _SessionState(
              session, hash_funcs
          )
  
      return session._custom_session_state
  
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 2 for calling a global function with example usage: _get_state(hash_funcs) and returns: session