def create_engine(engineScript):
    logger.debug('engineStore {}@{}'.format(crane.engineStore._defaultCollectionName, crane.engineStore._database))
    if engineScript not in 'monkType':
        engineScript['monkType'] = 'Engine'
    _engine = crane.engineStore.load_or_create(engineScript, True)
    if _engine is None:
        logger.error('failed to load or create engine {}'.format(engineScript))
        return None
    return _engine
dataset/ETHPy150Open xumiao/pymonk/monk/core/api.py/create_engine/swapped operands of `not in`