class_docstr: Base class for tests that use streamlit.Runtime directly.
docstr: Enqueue a ForwardMsg to a given session_id. It will be sent
  to the client on the next iteration through the run loop. (You can
  use `await self.tick_runtime_loop()` to tick the run loop.)
docstr_tok: ["Enqueue","a","ForwardMsg","to","a","given","session_id",".","It","will","be","sent","to","the","client","on","the","next","iteration","through","the","run","loop",".","(","You","can","use","`","await","self.tick_runtime_loop","(",")","`","to","tick","the","run","loop",".",")"]
code: def enqueue_forward_msg(
      self, session_id: str, msg: ForwardMsg
  ) -> None:
      """Enqueue a ForwardMsg to a given session_id. It will be sent
      to the client on the next iteration through the run loop. (You can
      use `await self.tick_runtime_loop()` to tick the run loop.)
      """
      session_info = self.runtime._session_mgr.get_active_session_info(
          session_id
      )
      if session_info is None:
          return
      session_info.session._enqueue_forward_msg(msg)
  
imports: import asyncio
  from typing import Callable, Dict, List, Optional
  from unittest import IsolatedAsyncioTestCase, mock
  from streamlit.proto.ForwardMsg_pb2 import ForwardMsg
  from streamlit.runtime import Runtime, RuntimeConfig, RuntimeState
  from streamlit.runtime.app_session import AppSession
  from streamlit.runtime.caching.storage.dummy_cache_storage import MemoryCacheStorageManager
  from streamlit.runtime.memory_media_file_storage import MemoryMediaFileStorage
  from streamlit.runtime.memory_uploaded_file_manager import MemoryUploadedFileManager
  from streamlit.runtime.script_data import ScriptData
  from streamlit.runtime.scriptrunner.script_cache import ScriptCache
  from streamlit.runtime.session_manager import SessionClient, SessionInfo, SessionManager, SessionStorage
  from streamlit.runtime.uploaded_file_manager import UploadedFileManager
label_desc: Use image node_id 1 for calling the RuntimeTestCase obj's underlying member method code with example usage: obj.enqueue_forward_msg(session_id, msg) without return types