code: def init_multi_net_def_info(self, multi_net_def):
      netdefs = multi_net_def.net_def
      self.net_num = len(netdefs)
      self.net_defs = [None] * self.net_num
      self.net_op_nums = [0] * self.net_num
      self.quantizes = [False] * self.net_num
      self.hexagons = [False] * self.net_num
      for net_def in netdefs:
          order = net_def.infer_order
          self.net_defs[order] = net_def
          self.net_op_nums[order] = len(net_def.op)
          is_quantize = ConverterUtil.get_arg(
              net_def, MaceKeyword.mace_quantize_flag_arg_str
          )
          self.quantizes[order] = (
              False if is_quantize is None else is_quantize.i == 1
          )
          self.hexagons[order] = self.quantizes[order] and (
              net_def.op[-1].type
              == HexagonOp.DequantizeOUTPUT_8tof.name
              or net_def.op[-1].type == HexagonOp.OUTPUT.name
          )
  
      self.end_index = self.start_index = 0
      for op_num in self.net_op_nums:
          self.end_index = self.end_index + op_num
      self.start_net_idx = 0
      self.start_op_idx = 0
      self.end_net_idx = self.net_num
      self.end_op_idx = self.net_op_nums[self.end_net_idx - 1]
  
imports: import argparse
  import copy
  import os
  import sh
  import yaml
  from py_proto import mace_pb2
  from transform.base_converter import ConverterUtil
  from transform.base_converter import MaceKeyword
  from transform.base_converter import MaceOp
  from transform.hexagon_converter import HexagonOp
  from utils.config_parser import DataFormat
  from utils.config_parser import ModelKeys
  from utils.util import mace_check
label_desc: Use image node_id 2 for calling the MultiNetDefInfo obj's underlying member method code with example usage: obj.init_multi_net_def_info(multi_net_def) without return types