code: def test_patch_good_slice_indices(self) -> None:
      ds = bms.ColumnDataSource(
          data=dict(
              a=[10, 11, 12, 13, 14, 15], b=[20, 21, 22, 23, 24, 25]
          )
      )
      ds._document = "doc"
      stuff = {}
      mock_setter = object()
  
      def mock(*args, **kw):
          stuff["args"] = args
          stuff["kw"] = kw
  
      ds.data._patch = mock
      ds.patch(
          dict(
              a=[(slice(2), [100, 101]), (slice(3, 5), [100, 101])],
              b=[(slice(0, None, 2), [100, 101, 102])],
          ),
          mock_setter,
      )
      assert stuff["args"] == (
          "doc",
          ds,
          dict(
              a=[(slice(2), [100, 101]), (slice(3, 5), [100, 101])],
              b=[(slice(0, None, 2), [100, 101, 102])],
          ),
          mock_setter,
      )
      assert stuff["kw"] == {}
  
imports: from __future__ import annotations
  import pytest
  import datetime
  import io
  import numpy
  import pandas
  from bokeh.models import Selection
  from bokeh.util.serialization import convert_datetime_array
  from bokeh.util.warnings import BokehDeprecationWarning
  import bokeh.models.sources
label_desc: Use image node_id 47 for calling the TestColumnDataSource obj's underlying member method code with example usage: obj.test_patch_good_slice_indices() without return types