def METHOD_NAME(cls, exception):
    if not cls.is_class():
        return False
    for python_cls in exception.mro():
        if cls.py__name__() == python_cls.__name__ \
                and cls.parent_context.is_builtins_module():
            return True
    return False