code: def test_issue_11852() -> None:
      class Test01(HasProps, Local):
          p0 = Either(List(Instance(HasProps)), Auto)
          p1 = Nullable(
              Either(
                  Dict(Int, Instance(HasProps)),
                  List(Instance(HasProps)),
              ),
              default={},
          )
  
      obj0 = Test01()
      obj1 = Test01()
  
      assert obj0.p0 == []
      assert obj1.p0 == []
      assert obj0.p1 == {}
      assert obj1.p1 == {}
  
      obj0.p0.append(obj1)
  
      assert obj0.p0 == [obj1]
      assert obj1.p0 == []
      assert obj0.p1 == {}
      assert obj1.p1 == {}
  
      obj0.p1[100] = obj1
  
      assert obj0.p0 == [obj1]
      assert obj1.p0 == []
      assert obj0.p1 == {100: obj1}
      assert obj1.p1 == {}
  
imports: from __future__ import annotations
  import pytest
  from bokeh.core.has_props import HasProps, Local
  from bokeh.core.properties import Auto, Dict, Either, Instance, Int, List, Nullable
label_desc: Use image node_id 1 for calling a global function with example usage: test_issue_11852() without return types