code: def bigdl_metric_results_to_dict(results):
      return dict([(r.method, r.result) for r in results])
  
file_path: analytics-zoo/pyzoo/zoo/orca/learn/utils.py
imports: from zoo.common.utils import get_file_list
  from zoo.orca.data import SparkXShards
  from zoo.orca.data.utils import get_size
  from zoo.util.utils import convert_row_to_numpy
  import numpy
label_desc: Use image node_id 12 for calling a global function with example usage: bigdl_metric_results_to_dict(results) and returns: dict