def METHOD_NAME(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)