def METHOD_NAME():
    class CustomIterator(object):
        elem = 10
        def __iter__(self):
            return self
        def __next__(self):
            if self.elem < 50:
                res = self.elem
                self.elem = self.elem + 10
                return res
            raise StopIteration()
    class CustomIterable(object):
        def __iter__(self):
            return CustomIterator()
    obj = CustomIterable()
    # TODO enable once array module is fixed
    #assert array.array("i", obj) == array.array("i", [10, 20, 30, 40])