code: def connect_session(
      self, existing_session_id=None, session_id_override=None
  ):
      return self.session_mgr.connect_session(
          client=MagicMock(),
          script_data=ScriptData(
              "/fake/script_path.py", is_hello=False
          ),
          user_info={},
          existing_session_id=existing_session_id,
          session_id_override=session_id_override,
      )
  
imports: import unittest
  from unittest.mock import MagicMock, patch
  import pytest
  from streamlit.runtime.script_data import ScriptData
  from streamlit.runtime.session_manager import SessionStorage
  from streamlit.runtime.websocket_session_manager import WebsocketSessionManager
label_desc: Use image node_id 2 for calling the WebsocketSessionManagerTests obj's underlying member method code with example usage: obj.connect_session(existing_session_id, session_id_override) and returns: self