def METHOD_NAME(graph: "DiGraph"):
    import io
    import networkx as nx
    from networkx.drawing.nx_pydot import write_dot
    dot_file = io.StringIO()
    nx.relabel_nodes(graph, _quote_label, copy=False)
    write_dot(graph.reverse(), dot_file)
    return dot_file.getvalue()