code: def test_dataspec_dict_to_serializable() -> None:
      for typ in (
          bcpd.NumberSpec,
          bcpd.StringSpec,
          bcpd.FontSizeSpec,
          bcpd.ColorSpec,
      ):
  
          class Foo(HasProps, Local):
              x = typ("x")
  
          foo = Foo(x=dict(field="foo"))
          props = foo.properties_with_values(include_defaults=False)
          assert isinstance(props["x"], Field)
          assert props["x"].field == "foo"
          assert props["x"] is foo.x
  
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 2 for calling a global function with example usage: test_dataspec_dict_to_serializable() without return types