def cycle(self, *args):
        if not args:
            raise TypeError('no items for cycling given')
        return args[self.index0 % len(args)]
Configure action factory to use effect factory
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/jinja2-2.6/jinja2/runtime.py/LoopContext.cycle--crossover with--dataset/ETHPy150Open tuturto/pyherc/src/pyherc/test/builders/action.py/ActionFactoryBuilder.with_effect_factory