code: def test_plot_valid(self):
      fig = {
          "data": [{"x": (1, 2, 3), "y": (2, 1, 2)}],
          "layout": {"title": {"text": "simple"}},
      }
      url = py.plot(fig, auto_open=False, filename="plot_valid")
      saved_fig = py.get_figure(url)
      self.assertEqual(saved_fig["data"][0]["x"], fig["data"][0]["x"])
      self.assertEqual(saved_fig["data"][0]["y"], fig["data"][0]["y"])
      self.assertEqual(
          saved_fig["layout"]["title"]["text"],
          fig["layout"]["title"]["text"],
      )
  
imports: from __future__ import absolute_import
  import urllib
  import requests
  import sys
  import json
  import warnings
  import chart_studio.tools
  import plotly.tools
  from chart_studio import session
  from chart_studio.tests.utils import PlotlyTestCase
  from chart_studio.plotly import plotly
  from _plotly_utils.exceptions import PlotlyError, PlotlyEmptyDataError
  from chart_studio.files import CONFIG_FILE
label_desc: Use image node_id 2 for calling the TestPlot obj's underlying member method code with example usage: obj.test_plot_valid() without return types