code: def setUp(self):
      # Construct initial scatter object
      self.figure = go.Figure(
          data=[
              go.Scatter(y=[3, 2, 1], marker={"color": "green"}),
              go.Bar(y=[3, 2, 1, 0, -1], marker={"opacity": 0.5}),
          ],
          layout={"xaxis": {"range": [-1, 4]}},
          frames=[go.Frame(layout={"yaxis": {"title": "f1"}})],
      )
  
      # Mock out the message method
      self.figure._send_update_msg = MagicMock()
  
file_path: plotly.py/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_plotly_update.py
imports: import sys
  from unittest import TestCase
  import plotly.graph_objs
  from plotly.basedatatypes import Undefined
label_desc: Use image node_id 1 for calling the TestBatchUpdateMessage obj's underlying member method code with example usage: obj.setUp() without return types