def hasattr(self, attr, ns=None):
raise NotImplementedError('<STR_LIT>')<EOL>
return true if node has attribute 
           attr -- attribute to check for
           ns -- namespace of attribute, by default None