code: def __init__(
      self,
      model_conf,
      net_def,
      model_weights,
      model_name,
      offset16=False,
      write_magic=False,
  ):
      self.model_conf = model_conf
      data_type = model_conf.get(ModelKeys.data_type, mace_pb2.DT_FLOAT)
      # self.net_def.arg
      if model_conf.get(ModelKeys.quantize_schema) == "int8":
          data_type = mace_pb2.DT_INT8
      self.net_def = MicroIoConverter.convert(net_def, data_type)
      self.model_weights = model_weights
      self.model_name = model_name
      self.offset16 = offset16
      self.write_magic = write_magic
      self.code_gen = MicroCodeGen()
      self.np_data_type = data_type_to_np_dt(data_type, np.float32)
      self.model_dir = "micro/codegen/" + model_name + "/"
      util.mkdir_p(self.model_dir)
      self.op_resolver = OpResolver(self.net_def, self.model_conf)
  
imports: import os
  from os import path
  import shutil
  import numpy
  from micro.graph_builder import GraphBuilder
  from micro.mem_computer import MemComputer
  from micro.micro_codegen import MicroCodeGen
  from micro.micro_io_converter import MicroIoConverter
  from micro.micro_op_converter import MicroOpConverter
  from micro.micro_support_ops import OpResolver
  from micro.proto_to_bytes import ProtoConverter
  from micro.scratch_computer import ScratchComputer
  from py_proto import mace_pb2
  from utils import util
  from utils.config_parser import ModelKeys
  from utils.convert_util import data_type_to_np_dt
  from utils.util import mace_check
label_desc: Use image node_id 1 to create a new MicroConverter object  with example: obj = MicroConverter(model_conf, net_def, model_weights, model_name, offset16, write_magic)