def next(self):
        try:
            result = self.folds[self.fold_idx]
            self.fold_idx += 1
            return result
        except __HOLE__:
            self.fold_idx = 0
            raise StopIteration
dataset/ETHPy150Open HIPS/Kayak/kayak/crossval.py/CrossValidator.next