Using example from documentation:
from anytree import Node, RenderTree, AsciiStyle f = Node("f") b = Node("b", parent=f) a = Node("a