import pydot
import os
os.system("cls")
dot_txt = 'digraph G {\n    start -> end;\n}'
graph, = pydot.graph_from_dot_data(dot_txt)
graph.write_png('f.png')
672b870f3c89efcb172305a1837401d20d241895
<mask token>

<mask token>
os.system('cls')
<mask token>
graph.write_png('f.png')

<mask token>
os.system('cls')
dot_txt = """digraph G {
    start -> end;
}"""
graph, = pydot.graph_from_dot_data(dot_txt)
graph.write_png('f.png')

import pydot
import os
os.system('cls')
dot_txt = """digraph G {
    start -> end;
}"""
graph, = pydot.graph_from_dot_data(dot_txt)
graph.write_png('f.png')

import pydot
import os
os.system("cls")
dot_txt = 'digraph G {\n    start -> end;\n}'
graph, = pydot.graph_from_dot_data(dot_txt)
graph.write_png('f.png')