code: def assert_equal(self, G1, G2):
      assert nodes_equal(G1.nodes(), G2.nodes())
      assert edges_equal(G1.edges(), G2.edges())
      assert G1.graph["metal"] == G2.graph["metal"]
  
imports: import warnings
  import pytest
  import networkx
  from networkx.utils import edges_equal, graphs_equal, nodes_equal
label_desc: Use image node_id 2 for calling the TestAGraph obj's underlying member method code with example usage: obj.assert_equal(G1, G2) without return types