pub fn to_wiring_diagram(input: &MathExpressionTree) -> WiringDiagram