code: def evaluate_metrics(y_true, y_pred, metrics):
      res = {}
      for metric_name, metric in metrics.items():
          res[metric_name] = metric(y_true, y_pred)
      return res
  
file_path: hummingbird/benchmarks/trees/metrics.py
imports: import numpy
  import sklearn.metrics
  from benchmarks.datasets import LearningTask
label_desc: Use image node_id 2 for calling a global function with example usage: evaluate_metrics(y_true, y_pred, metrics) and returns: res