code: def assert_equal(self, G1, G2):
      assert sorted(G1.nodes()) == sorted(G2.nodes())
      assert sorted(G1.edges()) == sorted(G2.edges())
  
imports: import pytest
  import networkx
  from networkx.generators.classic import barbell_graph, cycle_graph, path_graph
  from networkx.utils import graphs_equal
label_desc: Use image node_id 3 for calling the TestConvertNumpyArray obj's underlying member method code with example usage: obj.assert_equal(G1, G2) without return types