code: def test_PropertyValueColumnData__patch_with_slice_indices(
      mock_notify: MagicMock,
  ) -> None:
      from bokeh.document.events import ColumnsPatchedEvent
  
      source = ColumnDataSource(data=dict(foo=[10, 20, 30, 40, 50]))
      pvcd = bcpw.PropertyValueColumnData(source.data)
  
      mock_notify.reset_mock()
      pvcd._patch(
          "doc", source, dict(foo=[(slice(2), [1, 2])]), setter="setter"
      )
      assert mock_notify.call_count == 1
      assert mock_notify.call_args[0] == ({"foo": [1, 2, 30, 40, 50]},)
      assert pvcd == dict(foo=[1, 2, 30, 40, 50])
      assert "hint" in mock_notify.call_args[1]
      event = mock_notify.call_args[1]["hint"]
      assert isinstance(event, ColumnsPatchedEvent)
      assert event.setter == "setter"
  
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 18 for calling a global function with example usage: test_PropertyValueColumnData__patch_with_slice_indices(mock_notify) without return types