code: def test_get_svg_with_implicit_document_and_theme(
      webdriver: WebDriver,
  ) -> None:
      state = curstate()
      state.reset()
      try:
          state.document.theme = Theme(
              json={
                  "attrs": {
                      "Plot": {
                          "background_fill_color": "#2f3f4f",
                      },
                  },
              }
          )
  
          def p(color: str):
              plot = Plot(
                  x_range=Range1d(-1, 1),
                  y_range=Range1d(-1, 1),
                  height=200,
                  width=200,
                  toolbar_location=None,
                  output_backend="svg",
              )
              plot.add_glyph(
                  Circle(x=0, y=0, radius=1, fill_color=color)
              )
              return plot
  
          [svg] = bie.get_svg(
              row([p("red"), p("blue")]), driver=webdriver
          )
          assert len(re.findall(r'fill="rgb\(47,63,79\)"', svg)) == 2
      finally:
          state.reset()
  
imports: from __future__ import annotations
  import pytest
  import base64
  import re
  import sys
  from typing import TYPE_CHECKING
  from bokeh.core.validation import silenced
  from bokeh.core.validation.warnings import MISSING_RENDERERS
  from bokeh.io.state import curstate
  from bokeh.io.webdriver import webdriver_control
  from bokeh.layouts import row
  from bokeh.models import Circle, ColumnDataSource, Div, Plot, Range1d, Rect
  from bokeh.plotting import figure
  from bokeh.resources import Resources
  from bokeh.themes import Theme
  import bokeh.io.export
label_desc: Use image node_id 13 for calling a global function with example usage: test_get_svg_with_implicit_document_and_theme(webdriver) and returns: plot