code: def test_read_pajek(self, tmp_path):
      G = nx.parse_pajek(self.data)
      # Read data from file
      fname = tmp_path / "test.pjk"
      with open(fname, "wb") as fh:
          fh.write(self.data.encode("UTF-8"))
  
      Gin = nx.read_pajek(fname)
      assert sorted(G.nodes()) == sorted(Gin.nodes())
      assert edges_equal(G.edges(), Gin.edges())
      assert self.G.graph == Gin.graph
      for n in G:
          assert G.nodes[n] == Gin.nodes[n]
  
file_path: networkx/networkx/readwrite/tests/test_pajek.py
imports: import networkx
  from networkx.utils import edges_equal, nodes_equal
label_desc: Use image node_id 5 for calling the TestPajek obj's underlying member method code with example usage: obj.test_read_pajek(tmp_path) without return types