code: def _get_user_info() -> UserInfo:
      ctx = _get_script_run_ctx()
      if ctx is None:
          # TODO: Add appropriate warnings when ctx is missing
          return {}
      return ctx.user_info
  
file_path: streamlit/lib/streamlit/user_info.py
imports: from typing import Iterator, Mapping, NoReturn, Optional
  from streamlit.errors import StreamlitAPIException
  from streamlit.runtime.scriptrunner import get_script_run_ctx
  from streamlit.runtime.scriptrunner.script_run_context import UserInfo
label_desc: Use image node_id 1 for calling a global function with example usage: _get_user_info() and returns: ctx, dict