code: def test_scalar(self, typ) -> None:
      obj = typ()
      vals = set()
      assert (
          bmu.visit_value_and_its_immediate_references(
              obj, lambda x: vals.add(x)
          )
          is None
      )
      assert vals == set()
  
imports: from __future__ import annotations
  import pytest
  from dataclasses import dataclass
  from bokeh.core.has_props import Local
  from bokeh.core.properties import Dict, Instance, Int, List, Nullable, Object, Tuple
  from bokeh.document import Document
  from bokeh.model import Model
  from bokeh.models import LayoutDOM, Row
  import bokeh.model.util
label_desc: Use image node_id 1 for calling the Test_visit_value_and_its_immediate_references obj's underlying member method code with example usage: obj.test_scalar(typ) without return types