code: def check_text_properties(
      model: HasProps,
      prefix: str = "",
      font_size: str = "16px",
      baseline: str = "bottom",
      font_style: str = "normal",
      align: str = "left",
      scalar: bool = False,
  ) -> None:
      text_font = getattr(model, prefix + "text_font")
      text_font_size = getattr(model, prefix + "text_font_size")
      text_font_style = getattr(model, prefix + "text_font_style")
      text_color = getattr(model, prefix + "text_color")
      text_outline_color = getattr(model, prefix + "text_outline_color")
      text_alpha = getattr(model, prefix + "text_alpha")
      text_align = getattr(model, prefix + "text_align")
      text_baseline = getattr(model, prefix + "text_baseline")
  
      if scalar:
          assert text_font == "helvetica"
          assert text_font_size == font_size
          assert text_font_style == font_style
          assert text_color == "#444444"
          assert text_outline_color is None
          assert text_alpha == 1.0
          assert text_align == align
          assert text_baseline == baseline
      else:
          assert text_font == value("helvetica")
          assert text_font_size == value(font_size)
          assert text_font_style == font_style
          assert text_color == "#444444"
          assert text_outline_color is None
          assert text_alpha == 1.0
          assert text_align == align
          assert text_baseline == baseline
  
file_path: bokeh/tests/unit/bokeh/models/_util_models.py
imports: from __future__ import annotations
  import pytest
  from itertools import chain
  from typing import TYPE_CHECKING
  from bokeh.core.enums import LineCap, LineJoin, NamedColor
  from bokeh.core.property.vectorization import value
label_desc: Use image node_id 6 for calling a global function with example usage: check_text_properties(model, prefix, font_size, baseline, font_style, align, scalar) without return types