code: def test_read_write(self):
      G = nx.MultiGraph()
      G.graph["name"] = "G"
      G.add_edge("1", "2", key="0")  # read assumes strings
      fh = StringIO()
      nx.nx_pydot.write_dot(G, fh)
      fh.seek(0)
      H = nx.nx_pydot.read_dot(fh)
      assert graphs_equal(G, H)
  
file_path: networkx/networkx/drawing/tests/test_pydot.py
imports: from io import StringIO
  import pytest
  import networkx
  from networkx.utils import graphs_equal
label_desc: Use image node_id 2 for calling the TestPydot obj's underlying member method code with example usage: obj.test_read_write() without return types