keras/src/legacy/preprocessing/image.py/Iterator/__iter__
class Iterator:    def __iter__(self):
        # Needed if we want to do something like:
        # for x, y in data_gen.flow(...):
        return self