code: def build_engine(model_name, data_type, debug_mode=False):
      mace_check(
          flags.model_name is not None and len(model_name) > 0,
          "you should specify model name for build.",
      )
      debug_option = "Debug" if debug_mode else "Release"
      command = (
          "micro/tools/cmake/cmake-build-host.sh"
          " -DMICRO_MODEL_NAME=%s -DMACE_MICRO_ENABLE_CMSIS=ON"
          " -DMACE_MICRO_ENABLE_TOOLS=ON"
          " -DCMAKE_BUILD_TYPE=%s" % (model_name, debug_option)
      )
      if data_type == mace_pb2.DT_BFLOAT16:
          command += " -DMACE_MICRO_ENABLE_BFLOAT16=ON"
          print("The current engine's data type is bfloat16.")
      else:
          command += " -DMACE_MICRO_ENABLE_BFLOAT16=OFF"
  
      device.execute(command)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import argparse
  import copy
  import numpy
  import shutil
  import tempfile
  from micro_converter import MicroConverter
  from py_proto import mace_pb2
  import run_target
  from utils import util
  from utils import device
  from utils import config_parser
  from utils.target import Target
  from utils.config_parser import ModelKeys
  from utils.util import MaceLogger
  from utils.util import mace_check
  import validate
  import layers_validate
label_desc: Use image node_id 2 for calling a global function with example usage: build_engine(model_name, data_type, debug_mode) without return types