code: def test_notify_owner() -> None:
      result = {}
  
      class Foo:
          @bcpw.notify_owner
          def test(self):
              pass
  
          def _notify_owners(self, old):
              result["old"] = old
  
          def _saved_copy(self):
              return "foo"
  
      f = Foo()
      f.test()
      assert result["old"] == "foo"
      assert (
          f.test.__doc__
          == "Container method ``test`` instrumented to notify property owners"
      )
  
imports: from __future__ import annotations
  import pytest
  from unittest.mock import MagicMock, patch
  from bokeh.core.properties import Angle, Any, Bool, Color, ColumnData, Complex, DashPattern, Dict, Either, Enum, Float, Instance, Int, Interval, List, MinMaxBounds, Percent, Regex, Seq, Size, String, Tuple
  from bokeh.models import ColumnDataSource
  from tests.support.util.api import verify_all
  from _util_property import _TestModel
  import bokeh.core.property.wrappers
label_desc: Use image node_id 1 for calling a global function with example usage: test_notify_owner() and returns: str