human
Solve the following python programming problem given the following code:
def ast_pprint(root, cur_ind = 0, ind_val = 4, string = None) : 
    'Pretty printer for the yacc-based parser.' 
    _buf = [] 
    def _ast_pprint(_root, _cur_ind) : 
        if (not hasattr (_root, 'children')) : 
            _buf.append (str (_root)) 
else : 
            if _root.children : 
                _buf.append (("%sNode(type='%s'):" % (((' ' * _cur_ind) * ind_val), _root.type))) 
                for c in _root.children : 
                    _ast_pprint (c, (_cur_ind + 1)) 
else : 
                msg = ("%sNode(type='%s'" % (((' ' * _cur_ind) * ind_val), _root.type)) 
                if (_root.value is not None) : 
                    msg += (', value=%r)' % _root.value) 
else : 
                    msg += ')' 
_buf.append (msg) 
_ast_pprint (root, _ast_pprint) 
    if (string is None) : 
        print ('
'.join (_buf)) 
else : 
        string.write ('
'.join (_buf)) 

    
    

    Fix the buggy line: _ast_pprint (root, _ast_pprint)
assistant
#Here is Python program to fix the buggy line: _ast_pprint (root, _ast_pprint)
.

_ast_pprint (root, cur_ind)