code: def test_deepcopy_figure(fig1):
      fig_copied = copy.deepcopy(fig1)
  
      # Contents should be equal
      assert fig_copied.to_dict() == fig1.to_dict()
  
      # Identities should be distinct
      assert fig_copied is not fig1
      assert fig_copied.layout is not fig1.layout
      assert fig_copied.data is not fig1.data
  
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 3 for calling a global function with example usage: test_deepcopy_figure(fig1) without return types