from tree import Node, leaf from expr_parser import parse from typing import Optional def opt_times_two(e:Optional[Node])->Optional[Node]: if e.left != e.rig