<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def dfs_do_func_on_graph(node, func, *args, **kwargs):
    '''
    invoke func on each node of the dr graph
    '''
    for _node in node.tree_iterator():
        func(_node, *args, **kwargs)