def is_subtype_of(self, type_name, context=None):
if self.qname() == type_name:<EOL><INDENT>return True<EOL><DEDENT>for anc in self.ancestors(context=context):<EOL><INDENT>if anc.qname() == type_name:<EOL><INDENT>return True<EOL><DEDENT><DEDENT>return False<EOL>
Whether this class is a subtype of the given type.

        :param type_name: The name of the type of check against.
        :type type_name: str

        :returns: True if this class is a subtype of the given type,
            False otherwise.
        :rtype: bool