code: def test_general(self, test_plot) -> None:
      url = "http://localhost:5006"
      r = bes.server_session(test_plot, session_id="fakesession")
      html = bs4.BeautifulSoup(r, "html.parser")
      scripts = html.findAll(name="script")
      assert len(scripts) == 1
      script = scripts[0]
      attrs = script.attrs
      assert list(attrs) == ["id"]
      divid = attrs["id"]
      request = f"xhr.open('GET', \"{url}/autoload.js?bokeh-autoload-element={divid}&bokeh-absolute-url={url}\", true);"
      assert request in script.string
      assert (
          'xhr.setRequestHeader("Bokeh-Session-Id", "fakesession")'
          in script.string
      )
  
imports: from __future__ import annotations
  import pytest
  import bs4
  import bokeh.embed.server
label_desc: Use image node_id 7 for calling the TestServerSession obj's underlying member method code with example usage: obj.test_general(test_plot) without return types