code: def test_roundtrip(self, graph):
      # edgelist
      Gtrue = graph([(1, 1), (1, 2)])
      df = nx.to_pandas_edgelist(Gtrue)
      G = nx.from_pandas_edgelist(df, create_using=graph)
      assert graphs_equal(Gtrue, G)
      # adjacency
      adj = {
          1: {1: {"weight": 1}, 2: {"weight": 1}},
          2: {1: {"weight": 1}},
      }
      Gtrue = graph(adj)
      df = nx.to_pandas_adjacency(Gtrue, dtype=int)
      G = nx.from_pandas_adjacency(df, create_using=graph)
      assert graphs_equal(Gtrue, G)
  
imports: import pytest
  import networkx
  from networkx.utils import edges_equal, graphs_equal, nodes_equal
label_desc: Use image node_id 16 for calling the TestConvertPandas obj's underlying member method code with example usage: obj.test_roundtrip(graph) without return types