Helper function that allocates a new node with the given data and None left and right pointers .
def newNode ( data ) : NEW_LINE INDENT new_node = Node ( data ) NEW_LINE return new_node NEW_LINE DEDENT