code: def setUp(self):
      # Construct with mocked _send_restyle_msg method
      self.figure = go.Figure(
          data=[
              go.Scatter(),
              go.Bar(),
              go.Parcoords(dimensions=[{}, {"label": "dim 2"}, {}]),
          ]
      )
  
      # Mock out the message method
      self.figure._send_restyle_msg = MagicMock()
  
file_path: plotly.py/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_plotly_restyle.py
imports: import sys
  from unittest import TestCase
  import plotly.graph_objs
label_desc: Use image node_id 1 for calling the TestRestyleMessage obj's underlying member method code with example usage: obj.setUp() without return types