code: def write_index_data(self, index_data, i):
      for key in index_data:
          s = ""
          item = key.split(":")
          if item[3] == "hash_index":
              s += self.write_hash_data(
                  item[1], item[2], index_data[key]
              )
          elif item[3] == "range_index":
              s += self.write_range_data(
                  item[1], item[2], index_data[key]
              )
          elif item[3] == "neighbor_index":
              s += self.write_neighbor_data(
                  item[1], item[2], index_data[key]
              )
          name = item[0]
          path = os.path.join(
              self.output_dir,
              "Index",
              name,
              self.pref + "_%d.dat" % (i),
          )
          f = open(path, "w")
          f.write(s)
          f.close()
  
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 11 for calling the Converter obj's underlying member method code with example usage: obj.write_index_data(index_data, i) without return types