code: def __init__(
      self,
      meta_path,
      input_path,
      output_dir,
      partition_num,
      pref="index",
  ):
      self.meta_path = meta_path
      self.input_path = os.path.realpath(input_path)
      self.output_dir = os.path.realpath(output_dir)
      self.meta_data = json.load(open(meta_path, "r"))
  
      self.partition_num = partition_num
      self.pref = pref
      self.index_data = [{} for i in range(partition_num)]
  
      self.meta_generator = json2meta.Generator(
          [input_path], "", partition_num
      )
  
      type_data = [
          "int8_t",
          "int16_t",
          "int32_t",
          "int64_t",
          "uint8_t",
          "uint16_t",
          "uint32_t",
          "uint64_t",
          "float",
          "double",
          "bool",
          "string",
      ]
      self.types = {}
      for i in range(len(type_data)):
          self.types[type_data[i]] = i
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import json
  import sys
  import struct
  from euler.tools import json2meta
  from euler.tools.util import *
  import os
label_desc: Use image node_id 1 to create a new Converter object from inherited base classes: object with example: obj = Converter(meta_path, input_path, output_dir, partition_num, pref)