code: def engine(request):
      if request.param == "sequential":
          yield SequentialExecutionEngine(continue_on_failure=True)
      elif request.param == "ts":
          nodejs = NasExperiment(None, None, None)
          nodejs._start_nni_manager(8080, True)
          yield TrainingServiceExecutionEngine(nodejs)
          nodejs._stop_nni_manager()
  
file_path: nni/test/ut/nas/test_engine.py
imports: import time
  import pytest
  import nni
  from nni.nas.experiment import NasExperiment
  from nni.nas.execution import ExecutionEngine, TrainingServiceExecutionEngine, SequentialExecutionEngine
  from nni.nas.execution.event import ModelEventType
  from nni.nas.evaluator import FunctionalEvaluator
  from nni.nas.space import BaseModelSpace, SimplifiedModelSpace, current_model, ModelStatus
label_desc: Use image node_id 2 for calling a global function with example usage: engine(request) without return types