code: def get_label2answer(data_dir):
      import gzip
  
      label2answer = dict()
      with gzip.open(
          data_dir + "/InsuranceQA.label2answer.token.encoded.gz"
      ) as fin:
          for line in fin:
              pair = line.decode().strip().split("\t")
              idxs = pair[1].split(" ")
              idxs = [int(idx.replace("idx_", "")) for idx in idxs]
              label2answer[int(pair[0])] = idxs
      return label2answer
  
file_path: singa/examples/qabot/qabot_data.py
imports: import numpy
  import random
  import os
  import urllib
label_desc: Use image node_id 3 for calling a global function with example usage: get_label2answer(data_dir) and returns: label2answer