code: def evaluate_fn(model, b):
      nni.report_intermediate_result(model.call(1))
      nni.report_intermediate_result(model.call(2))
      if model.a == 3:
          raise RuntimeError()
      nni.report_final_result(model.call(3) + b)
  
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 1 for calling a global function with example usage: evaluate_fn(model, b) without return types