code: def test_cross(case_path: str, config: _pytest.config.Config) -> None:
      status, _, out, err = _run_test_case(CASE_DIR / case_path)
      if status == 0:
          baseline = (BASELINE_DIR / case_path).with_suffix(".json5")
  
          os.makedirs(baseline.parent, exist_ok=True)
          with baseline.open("w", encoding="utf-8") as file:
              file.write(out)
  
          baseline_path = baseline.relative_to(BASE_DIR)
          result = load_baseline(baseline_path)
          if result is None:
              assert (
                  False
              ), "missing baseline; commit the baseline and re-run tests"
  
          status, out, _ = diff_baseline(baseline_path)
          if status != 0:
              print(out)
              assert False, "baseline differs"
      else:
          print(err)
          assert False, "test case failed to run"
  
file_path: bokeh/tests/test_cross.py
imports: from __future__ import annotations
  import pytest
  import os
  import signal
  import subprocess
  import sys
  import time
  from pathlib import Path
  from typing import TYPE_CHECKING, Literal, NoReturn, Union
  import _pytest.config
  import _pytest.mark
  import _pytest.python
label_desc: Use image node_id 2 for calling a global function with example usage: test_cross(case_path, config) without return types