code: def setUp(self):
      # Construct with mocked _send_relayout_msg method
      self.figure = go.Figure(layout={"xaxis": {"range": [-1, 4]}})
  
      # Mock out the message method
      self.figure._send_relayout_msg = MagicMock()
  
file_path: plotly.py/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_plotly_relayout.py
imports: import sys
  from unittest import TestCase
  import plotly.graph_objs
label_desc: Use image node_id 1 for calling the TestRelayoutMessage obj's underlying member method code with example usage: obj.setUp() without return types