code: def gen_index_param(index_type):
      metric_type = "L2"
      if "BIN" in index_type:
          metric_type = "HAMMING"
      index_param = {
          "index_type": index_type,
          "params": index_params_map[index_type],
          "metric_type": metric_type,
      }
      return index_param
  
imports: import json
  from utils.util_log import test_log
label_desc: Use image node_id 1 for calling a global function with example usage: gen_index_param(index_type) and returns: index_param