def create_constant(value):
    constant = NewConstant()
    constant.setValue(value)
    return constant
Creates a NewConstant module, to be used for the ModuleConnector.
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/packages/parallelflow/map.py/create_constant