code: def test_read_p2g(self):
      s = b"""\
  name
  3 4
  a
  1 2
  b
  
  c
  0 2
  """
      bytesIO = io.BytesIO(s)
      G = read_p2g(bytesIO)
      assert G.name == "name"
      assert sorted(G) == ["a", "b", "c"]
      edges = [(str(u), str(v)) for u, v in G.edges()]
      assert edges_equal(
          G.edges(), [("a", "c"), ("a", "b"), ("c", "a"), ("c", "c")]
      )
  
file_path: networkx/networkx/readwrite/tests/test_p2g.py
imports: import io
  import networkx
  from networkx.readwrite.p2g import read_p2g, write_p2g
  from networkx.utils import edges_equal
label_desc: Use image node_id 2 for calling the TestP2G obj's underlying member method code with example usage: obj.test_read_p2g() without return types