code: def test_callback_on_plotly_restyle(self):
      # Register callback if either 'x' or 'y' changes on first trace
      fn = MagicMock()
      self.figure.data[0].on_change(fn, "x", "y")
  
      # Perform assignment on one of pthe properties
      self.figure.plotly_restyle(
          {"x": [[11, 22, 33], [1, 11, 111]]}, trace_indexes=[0, 1]
      )
  
      # Check function called once with new value of x and old value of y
      fn.assert_called_once_with(
          self.figure.data[0], (11, 22, 33), (3, 2, 1)
      )
  
imports: import sys
  from unittest import TestCase
  import pytest
  import plotly.graph_objs
label_desc: Use image node_id 16 for calling the TestOnChangeCallbacks obj's underlying member method code with example usage: obj.test_callback_on_plotly_restyle() without return types