code: def test_unicode(self):
      import io
  
      G = nx.Graph()
      name1 = chr(2344) + chr(123) + chr(6543)
      name2 = chr(5543) + chr(1543) + chr(324)
      G.add_edge(name1, "Radiohead", foo=name2)
      fh = io.BytesIO()
      nx.write_pajek(G, fh)
      fh.seek(0)
      H = nx.read_pajek(fh)
      assert nodes_equal(list(G), list(H))
      assert edges_equal(list(G.edges()), list(H.edges()))
      assert G.graph == H.graph
  
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 9 for calling the TestPajek obj's underlying member method code with example usage: obj.test_unicode() without return types