#NEWLINE# def generic_visit( self , node , parent , color = 'black' , edge_label = None ) : #NEWLINE# #INDENT# if ( node is None ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# for c in node . children ( ) : #NEWLINE# #INDENT# self . visit ( self , parent , color = color , edge_label = edge_label )