code: def check_hatch_properties(
      model: HasProps,
      prefix: str = "",
      hatch_color: str | None = Color.black,
      hatch_alpha: float = 1.0,
      hatch_pattern: str | None = None,
      hatch_scale: float = 12.0,
      hatch_weight: float = 1.0,
      hatch_extra: dict[str, str] = {},
  ) -> None:
      assert getattr(model, prefix + "hatch_color") == hatch_color
      assert getattr(model, prefix + "hatch_alpha") == hatch_alpha
      assert getattr(model, prefix + "hatch_pattern") == hatch_pattern
      assert getattr(model, prefix + "hatch_scale") == hatch_scale
      assert getattr(model, prefix + "hatch_weight") == hatch_weight
      assert getattr(model, prefix + "hatch_extra") == hatch_extra
  
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 4 for calling a global function with example usage: check_hatch_properties(model, prefix, hatch_color, hatch_alpha, hatch_pattern, hatch_scale, hatch_weight, hatch_extra) without return types