code: def test_entries() -> None:
      x0 = X(0, [1, 2, 3])
      assert dict(dc.entries(x0)) == dict(f0=0, f1=[1, 2, 3], f2=None)
  
      x1 = X(0, [1, 2, 3], f3=None)
      assert dict(dc.entries(x1)) == dict(
          f0=0, f1=[1, 2, 3], f2=None, f3=None
      )
  
      with pytest.raises(TypeError):
          list(dc.entries(object()))
  
imports: from __future__ import annotations
  import pytest
  import bokeh.util.dataclasses
label_desc: Use image node_id 1 for calling a global function with example usage: test_entries() without return types