code: def test_version_missing_build_dir(
      monkeypatch: pytest.MonkeyPatch,
  ) -> None:
      monkeypatch.setattr(bup, "__version__", "0.1.2.rc12")
      errors = bup.validate(build_dir="/foobuild")
      assert any("foobuild" in err for err in errors)
  
file_path: bokeh/tests/unit/bokeh/util/test_package.py
imports: from __future__ import annotations
  import pytest
  from unittest.mock import MagicMock, patch
  import bokeh.util.package
label_desc: Use image node_id 8 for calling a global function with example usage: test_version_missing_build_dir(monkeypatch) without return types