def METHOD_NAME():
    class HasIter():
        def __iter__(self):
            self.i = 0
            return self
    try:
        2 in HasIter()
    except Exception as e:
        assert type(e) is TypeError