code: def test_strict_dataspec_key_values() -> None:
      for typ in (
          bcpd.NumberSpec,
          bcpd.StringSpec,
          bcpd.FontSizeSpec,
          bcpd.ColorSpec,
          bcpd.SizeSpec,
      ):
  
          class Foo(HasProps, Local):
              x = typ("x")
  
          f = Foo()
          with pytest.raises(ValueError):
              f.x = dict(field="foo", units="junk")
  
imports: from __future__ import annotations
  import pytest
  import datetime
  import warnings
  from copy import copy
  import numpy
  import pandas
  from bokeh.core.has_props import HasProps, Local
  from bokeh.core.property.vectorization import Field, Value, field, value
  from tests.support.util.api import verify_all
  import bokeh.core.property.dataspec
label_desc: Use image node_id 1 for calling a global function with example usage: test_strict_dataspec_key_values() without return types