code: def test_server_source_update_does_not_duplicate_data_update_event(
      self, bokeh_server_page: BokehServerPage
  ) -> None:
      btn = Button(label="Click Me!")
  
      data = {"x": [1, 2, 3, 4], "y": [10, 20, 30, 40]}
      source = ColumnDataSource(data)
  
      table = DataTable(
          columns=[
              TableColumn(field="x"),
              TableColumn(field="y"),
          ],
          source=source,
          editable=False,
      )
  
      def modify_doc(doc):
          plot = Plot(
              height=400,
              width=400,
              x_range=Range1d(0, 1),
              y_range=Range1d(0, 1),
              min_border=0,
          )
          plot.tags.append(
              CustomJS(
                  name="custom-action",
                  args=dict(s=source),
                  code=RECORD("data", "s.data"),
              )
          )
  
          def btn_click(event):
              source.data = {"x": [5, 6, 7, 8], "y": [50, 60, 70, 80]}
  
          btn.on_event("button_click", btn_click)
  
          doc.add_root(column(plot, table, btn))
  
      page = bokeh_server_page(modify_doc)
  
      page.eval_custom_action()
  
      results = page.results
      assert results == {
          "data": {"x": [1, 2, 3, 4], "y": [10, 20, 30, 40]}
      }
  
      btn_el = find_element_for(page.driver, btn)
      btn_el.click()
  
      page.eval_custom_action()
  
      results = page.results
      assert results == {
          "data": {"x": [5, 6, 7, 8], "y": [50, 60, 70, 80]}
      }
  
      # if the server receives something back like:
      #
      # Message 'PATCH-DOC' (revision 1) content: {
      #     'events': [{
      #         'kind': 'ModelChanged',
      #         'model': {'id': '1001'},
      #         'attr': 'data', 'new': {'x': [1, 2, 3, 4, 5], 'y': [10, 20, 30, 40, 50]}
      #     }],
      #     'references': []
      # }
      #
      # Then that means the client got our stream message and erroneously ping
      # ponged a full data update back to us
      assert not has_cds_data_patches(page.message_test_port.received)
  
      assert page.has_no_console_errors()
  
imports: from __future__ import annotations
  import pytest
  from bokeh.layouts import column
  from bokeh.models import Button, ColumnDataSource, CustomJS, DataTable, NumberEditor, Plot, Range1d, Rect, TableColumn, TapTool
  from tests.support.plugins.project import BokehServerPage, SinglePlotPage
  from tests.support.util.selenium import RECORD, alt_click, enter_text_in_cell, find_element_for, get_table_cell, get_table_column_cells, get_table_row, get_table_selected_rows, shift_click, sort_table_column
label_desc: Use image node_id 3 for calling the Test_DataTableSource obj's underlying member method code with example usage: obj.test_server_source_update_does_not_duplicate_data_update_event(bokeh_server_page) without return types