@staticmethod<EOL><INDENT>def _check_exception_inherit_from_stopiteration(exc):<DEDENT>
stopiteration_qname = "<STR_LIT>".format(utils.EXCEPTIONS_MODULE)<EOL>return any(_class.qname() == stopiteration_qname for _class in exc.mro())<EOL>
Return True if the exception node in argument inherit from StopIteration