code: def get_metrics_dict_from_results_dict(results_dict):
      return {
          task_name: results["metrics"].to_dict()
          for task_name, results in results_dict.items()
      }
  
imports: import abc
  import numexpr
  import numpy
  from typing import Union, Optional, Dict
label_desc: Use image node_id 4 for calling a global function with example usage: get_metrics_dict_from_results_dict(results_dict) and returns: unknown