code: def test_input_data_is_not_modified_when_building_graph(self):
      G = nx.path_graph(4)
      input_data = adjacency_data(G)
      orig_data = copy.deepcopy(input_data)
      # Ensure input is unmodified by deserialisation
      assert graphs_equal(G, adjacency_graph(input_data))
      assert input_data == orig_data
  
file_path: networkx/networkx/readwrite/json_graph/tests/test_adjacency.py
imports: import copy
  import json
  import pytest
  import networkx
  from networkx.readwrite.json_graph import adjacency_data, adjacency_graph
  from networkx.utils import graphs_equal
label_desc: Use image node_id 6 for calling the TestAdjacency obj's underlying member method code with example usage: obj.test_input_data_is_not_modified_when_building_graph() without return types