code: def test_with_mathstring(self) -> None:
      assert (
          beb._use_mathjax(beb._all_objs([mathstring_axis_label()]))
          is True
      )
      assert (
          beb._use_mathjax(
              beb._all_objs([plot(), mathstring_axis_label()])
          )
          is True
      )
      assert (
          beb._use_mathjax(
              beb._all_objs([plot(), glplot(), mathstring_axis_label()])
          )
          is True
      )
      assert (
          beb._use_mathjax(
              beb._all_objs([plot(), widget(), mathstring_axis_label()])
          )
          is True
      )
      assert (
          beb._use_mathjax(
              beb._all_objs(
                  [plot(), widget(), table(), mathstring_axis_label()]
              )
          )
          is True
      )
      assert (
          beb._use_mathjax(
              beb._all_objs(
                  [plot(), mathtext(), mathstring_axis_label()]
              )
          )
          is True
      )
      assert (
          beb._use_mathjax(
              beb._all_objs(
                  [plot(), mathstring_major_label_overrides()]
              )
          )
          is True
      )
  
      assert (
          beb._use_mathjax(
              beb._all_objs([mathstring_axis_label_partial()])
          )
          is True
      )
      assert (
          beb._use_mathjax(
              beb._all_objs(
                  [mathstring_axis_label_with_parenthesis_partial()]
              )
          )
          is True
      )
      assert (
          beb._use_mathjax(
              beb._all_objs(
                  [mathstring_major_label_overrides_partial()]
              )
          )
          is True
      )
  
      d = Document()
      d.add_root(plot())
      d.add_root(table())
      d.add_root(widget())
      d.add_root(mathstring_axis_label())
      assert beb._use_mathjax(beb._all_objs([d])) is True
  
imports: from __future__ import annotations
  import pytest
  from os.path import dirname, join
  from bokeh import models
  from bokeh.core.has_props import _default_resolver
  from bokeh.document import Document
  from bokeh.embed.bundle import URL, extension_dirs
  from bokeh.ext import build
  from bokeh.resources import CDN, INLINE, Resources
  from tests.support.util.env import envset
  import bokeh.embed.bundle
label_desc: Use image node_id 3 for calling the Test__use_mathjax obj's underlying member method code with example usage: obj.test_with_mathstring() without return types