code: def gen_feature_map(feature_str):
      fea_map = {}
      fea_index = 0
      for one_fea in feature_str.split("\t")[1:-1]:
          fea_map[one_fea.split(":")[-2]] = fea_index
          fea_index += 1
      return fea_map
  
file_path: euler/tf_euler/python/dataset/pubmed_utils.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: gen_feature_map(feature_str) and returns: fea_map