code: def assert_update_traces(
      self,
      expected_inds,
      patch=None,
      selector=None,
      row=None,
      col=None,
      secondary_y=None,
      **kwargs,
  ):
      # Save off original figure
      fig_orig = copy.deepcopy(self.fig)
      for trace1, trace2 in zip(fig_orig.data, self.fig.data):
          trace1.uid = trace2.uid
  
      # Perform update
      update_res = self.fig.update_traces(
          patch,
          selector=selector,
          row=row,
          col=col,
          secondary_y=secondary_y,
          **kwargs,
      )
  
      # Check chaining support
      self.assertIs(update_res, self.fig)
  
      # Check resulting traces
      for i, (t_orig, t) in enumerate(
          zip(fig_orig.data, self.fig.data)
      ):
          if i in expected_inds:
              # Check that traces are initially equal
              self.assertNotEqual(t_orig, t)
  
              # Check that traces are equal after update
              t_orig.update(patch, **kwargs)
  
          # Check that traces are equal
          self.assertEqual(t_orig, t)
  
imports: from unittest import TestCase
  import inspect
  import copy
  import pytest
  import plotly.graph_objs
  from plotly.subplots import make_subplots
  from functools import reduce
label_desc: Use image node_id 11 for calling the TestSelectForEachUpdateTraces obj's underlying member method code with example usage: obj.assert_update_traces(expected_inds, patch, selector, row, col, secondary_y) without return types