code: def test_deepcopy_layout(fig1):
      copied_layout = copy.deepcopy(fig1.layout)
  
      # Contents should be equal
      assert copied_layout == fig1.layout
  
      # Identities should not
      assert copied_layout is not fig1.layout
  
      # Original layout should still have fig1 as parent
      assert fig1.layout.parent is fig1
  
      # Copied layout should have no parent
      assert copied_layout.parent is None
  
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 5 for calling a global function with example usage: test_deepcopy_layout(fig1) without return types