def is_method(self):
<EOL>return self.type != "<STR_LIT>" and isinstance(self.parent.frame(), ClassDef)<EOL>
Check if this function node represents a method.

        :returns: True if this is a method, False otherwise.
        :rtype: bool