#NEWLINE# def _append_nonsingleton_leaf_node( Z , p , n , level , lvs , ivl , leaf_label_func , i , labels , show_leaf_counts ) : #NEWLINE# #INDENT# if ( lvs is not None ) : #NEWLINE# #INDENT# lvs . append ( int ( i ) ) #NEWLINE# #UNINDENT# if ( Z is not None ) : #NEWLINE# #INDENT# if leaf_label_func : #NEWLINE# #INDENT# ivl . append ( leaf_label_func ( int ( i ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if show_leaf_counts : #NEWLINE# #INDENT# ivl . append ( ( ( '(' + str ( int ( Z [ ( ( i - n ) , 3 ) ] ) ) ) + ')' ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ivl . append ( '' )