code: def test_roundtrip(self):
      for i in list(range(13)) + [31, 47, 62, 63, 64, 72]:
          G = nx.random_graphs.gnm_random_graph(i, i * i // 4, seed=i)
          data = g6.to_graph6_bytes(G)
          H = nx.from_graph6_bytes(data.rstrip())
          assert nodes_equal(G.nodes(), H.nodes())
          assert edges_equal(G.edges(), H.edges())
  
imports: from io import BytesIO
  import pytest
  import networkx
  import networkx.readwrite.graph6
  from networkx.utils import edges_equal, nodes_equal
label_desc: Use image node_id 9 for calling the TestToGraph6Bytes obj's underlying member method code with example usage: obj.test_roundtrip() without return types