Node.replace()

Replace this node in the tree with new_node.

Usage

Source

Node.replace(new_node)