code: def test_pickle_figure_subplots_round_trip(fig_subplots):
      fig_copied = pickle.loads(pickle.dumps(fig_subplots))
  
      # Contents should be equal
      assert fig_copied.to_dict() == fig_subplots.to_dict()
  
      # Should be possible to add new trace to subplot location
      fig_subplots.add_bar(y=[0, 0, 1], row=1, col=2)
      fig_copied.add_bar(y=[0, 0, 1], row=1, col=2)
  
      # And contents should be still equal
      assert fig_copied.to_dict() == fig_subplots.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 7 for calling a global function with example usage: test_pickle_figure_subplots_round_trip(fig_subplots) without return types