def __init__(self, size=None, module=None, generator=None, port=None,
                 accumulated=False):
        self.module = module
        self.generator = generator
        self.port = port
        self.size = size
        self.accumulated = accumulated
        if generator and Generator.generators not in module:
            # add to global list of generators
            # they will be topologically ordered
            module.generator = generator
            Generator.generators.append(module)
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/core/modules/basic_modules.py/Generator.__init__/swapped operands of `not in`