code: def session_state(draw) -> SessionState:
      state = draw(_session_state())
  
      state._compact_state()
      # round 2
  
      state2 = draw(_session_state())
  
      _merge_states(state, state2)
  
      return state
  
file_path: streamlit/lib/tests/streamlit/runtime/state/strategies.py
imports: from hypothesis import strategies
  from streamlit.runtime.state.common import GENERATED_WIDGET_ID_PREFIX
  from streamlit.runtime.state.session_state import SessionState, WidgetMetadata
label_desc: Use image node_id 5 for calling a global function with example usage: session_state(draw) and returns: state