code: def test_view_pygraphviz_edgelabel(self):
      G = nx.Graph()
      G.add_edge(1, 2, weight=7)
      G.add_edge(2, 3, weight=8)
      path, A = nx.nx_agraph.view_pygraphviz(
          G, edgelabel="weight", show=False
      )
      for edge in A.edges():
          assert edge.attr["weight"] in ("7", "8")
  
imports: import warnings
  import pytest
  import networkx
  from networkx.utils import edges_equal, graphs_equal, nodes_equal
label_desc: Use image node_id 12 for calling the TestAGraph obj's underlying member method code with example usage: obj.test_view_pygraphviz_edgelabel() without return types