#NEWLINE# def has_tag( node , kind ) : #NEWLINE# #INDENT# 'Does the node contains a Tag of a given kind?\n    ' #NEWLINE# for d in node [ 'directory' ] : #NEWLINE# #INDENT# if ( d . kind == kind ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# return False