code: def test_bkroot_added_to_target(
      self, driver, test_file_path_and_url, has_no_console_errors
  ) -> None:
      p = Plot(css_classes=["this-plot"])
      html = PAGE.render(
          item=json.dumps(json_item(p)), resources=INLINE.render()
      )
  
      path, url = test_file_path_and_url
      with open(path, "w") as f:
          f.write(html)
  
      driver.get(url)
  
      div = driver.find_elements(By.CLASS_NAME, "this-plot")
      assert has_no_console_errors(driver)
      assert len(div) == 1
  
file_path: bokeh/tests/integration/embed/test_json_item.py
imports: from __future__ import annotations
  import pytest
  import json
  from jinja2 import Template
  from selenium.webdriver.common.by import By
  from bokeh.embed import json_item
  from bokeh.models import Plot
  from bokeh.resources import INLINE
label_desc: Use image node_id 1 for calling the Test_json_item obj's underlying member method code with example usage: obj.test_bkroot_added_to_target(driver, test_file_path_and_url, has_no_console_errors) without return types