code: def convert_neighbor(self, neighbor_index):
      groups_idx = []
      neighbor = []
      weight = []
      type_ids = []
      type_weights = []
      idx = 0
      sum_weight = 0
      i = 0
      for t_neighbors in neighbor_index:
          idx += len(t_neighbors)
          groups_idx.append(idx)
          type_weight = 0
          for n in t_neighbors:
              neighbor.append(n[0])
              sum_weight += n[1]
              type_weight += n[1]
              weight.append(sum_weight)
  
          type_ids.append(i)
          type_weights.append(type_weight)
          i += 1
      return groups_idx, neighbor, weight, type_ids, type_weights
  
file_path: euler/euler/tools/node.py
imports: import struct
  from euler.tools.util import *
label_desc: Use image node_id 6 for calling the Node obj's underlying member method code with example usage: obj.convert_neighbor(neighbor_index) and returns: groups_idx,  neighbor,  weight,  type_ids,  type_weights