code: def test_to_edgelist(self):
      G = nx.Graph([(1, 1)])
      elist = nx.to_edgelist(G, nodelist=list(G))
      assert edges_equal(G.edges(data=True), elist)
  
imports: import pytest
  import networkx
  from networkx.convert import from_dict_of_dicts, from_dict_of_lists, to_dict_of_dicts, to_dict_of_lists, to_networkx_graph
  from networkx.generators.classic import barbell_graph, cycle_graph
  from networkx.utils import edges_equal, graphs_equal, nodes_equal
label_desc: Use image node_id 10 for calling the TestConvert obj's underlying member method code with example usage: obj.test_to_edgelist() without return types