original_docstring: check if the node has the attribute
  
          :param attribute: the attribute to check
          :type attribute: str
  
          :return: ``True`` : it has the attribute - ``False`` : it does not have the attribute
          :rtype: bool
          
docstring: check if the node has the attribute
docstring_tokens: check if the node has the attribute
code: def hasAttribute(self, attribute):
          """check if the node has the attribute
  
          :param attribute: the attribute to check
          :type attribute: str
  
          :return: ``True`` : it has the attribute - ``False`` : it does not have the attribute
          :rtype: bool
          """
  
          # return
          return maya.cmds.attributeQuery(attribute, exists=True, node=self.name())
code_tokens: def hasAttribute ( self , attribute ) : return maya . cmds . attributeQuery ( attribute , exists = True , node = self . name ( ) )
short_docstring: check if the node has the attribute
short_docstring_tokens: check if the node has the attribute
comment: """check if the node has the attribute
  
          :param attribute: the attribute to check
          :type attribute: str
  
          :return: ``True`` : it has the attribute - ``False`` : it does not have the attribute
          :rtype: bool
          """$SEP$# return