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}),
              go.Sankey(arrangement="snap"),
          ]
      )
  
      # Mock out the message methods
      self.figure._send_moveTraces_msg = MagicMock()
      self.figure._send_deleteTraces_msg = MagicMock()
  
file_path: plotly.py/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_move_delete_traces.py
imports: import sys
  from unittest import TestCase
  import pytest
  import plotly.graph_objs
label_desc: Use image node_id 1 for calling the TestMoveDeleteTracesMessages obj's underlying member method code with example usage: obj.setUp() without return types