code: def test_script_attrs_url_provided_absolute_resources(self) -> None:
      url = "http://localhost:8081/foo/bar/sliders"
      r = bes.server_document(url=url)
      assert "bokeh-app-path=/foo/bar/sliders" in r
      assert (
          "bokeh-absolute-url=http://localhost:8081/foo/bar/sliders"
          in r
      )
      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-app-path=/foo/bar/sliders&bokeh-absolute-url={url}\", true);"
      assert request in script.string
  
imports: from __future__ import annotations
  import pytest
  import bs4
  import bokeh.embed.server
label_desc: Use image node_id 6 for calling the TestServerDocument obj's underlying member method code with example usage: obj.test_script_attrs_url_provided_absolute_resources() without return types