code: def add_index_data(self, index_data, indexkey, value, id, weight):
      if indexkey.endswith("neighbor_index"):
          self.check_dict(self.neighbor_index, indexkey, "dict")
          self.neighbor_index[indexkey][id] = (value, id, weight)
      else:
          self.check_dict(index_data, indexkey)
          index_data[indexkey].append((value, id, weight))
  
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 4 for calling the Converter obj's underlying member method code with example usage: obj.add_index_data(index_data, indexkey, value, id, weight) without return types