code: def test_from_edgelist(self):
      # Pandas DataFrame
      G = nx.cycle_graph(10)
      G.add_weighted_edges_from((u, v, u) for u, v in list(G.edges))
  
      edgelist = nx.to_edgelist(G)
      source = [s for s, t, d in edgelist]
      target = [t for s, t, d in edgelist]
      weight = [d["weight"] for s, t, d in edgelist]
      edges = pd.DataFrame(
          {"source": source, "target": target, "weight": weight}
      )
  
      GG = nx.from_pandas_edgelist(edges, edge_attr="weight")
      assert nodes_equal(G.nodes(), GG.nodes())
      assert edges_equal(G.edges(), GG.edges())
      GW = nx.to_networkx_graph(edges, create_using=nx.Graph)
      assert nodes_equal(G.nodes(), GW.nodes())
      assert edges_equal(G.edges(), GW.edges())
  
imports: import pytest
  import networkx
  from networkx.utils import edges_equal, graphs_equal, nodes_equal
label_desc: Use image node_id 11 for calling the TestConvertPandas obj's underlying member method code with example usage: obj.test_from_edgelist() without return types