docstr: Test that connect_session gives us a new session if existing_session_id is invalid.
code: def test_connect_session_on_invalid_session_id(self):
      """Test that connect_session gives us a new session if existing_session_id is invalid."""
      session_id = self.connect_session(
          existing_session_id="not a valid session"
      )
      session_info = self.session_mgr._active_session_info_by_id[
          session_id
      ]
  
      assert session_info.session.id == session_id
      assert session_info.session.id != "not a valid session"
  
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 6 for calling the WebsocketSessionManagerTests obj's underlying member method code with example usage: obj.test_connect_session_on_invalid_session_id() without return types