code: def exists() -> bool:
      """True if the singleton Runtime instance has been created.
  
      When a Streamlit app is running in "raw mode" - that is, when the
      app is run via `python app.py` instead of `streamlit run app.py` -
      the Runtime will not exist, and various Streamlit functions need
      to adapt.
      """
      return Runtime.exists()
  
imports: from streamlit.runtime.runtime import Runtime, RuntimeConfig, RuntimeState
  from streamlit.runtime.session_manager import SessionClient, SessionClientDisconnectedError
label_desc: Use image node_id 2 for calling a global function with example usage: exists() and returns: Runtime