code: def test_pickle_figure_round_trip(fig1):
      fig_copied = pickle.loads(pickle.dumps(fig1))
  
      # Contents should be equal
      assert fig_copied.to_dict() == fig1.to_dict()
  
file_path: plotly.py/packages/python/plotly/plotly/tests/test_io/test_deepcopy_pickle.py
imports: import pytest
  import copy
  import pickle
  from plotly.tools import make_subplots
  import plotly.graph_objs
  import plotly.io
label_desc: Use image node_id 6 for calling a global function with example usage: test_pickle_figure_round_trip(fig1) without return types