code: def get_metrics(y_test, pred, learning_task):
      if learning_task == LearningTask.REGRESSION:
          return regression_metrics(y_test, pred)
      if learning_task == LearningTask.CLASSIFICATION:
          return classification_metrics(y_test, pred)
      if learning_task == LearningTask.MULTICLASS_CLASSIFICATION:
          return classification_metrics_multilabel(y_test, pred)
      raise ValueError(
          "No metrics defined for learning task: " + str(learning_task)
      )
  
file_path: hummingbird/benchmarks/trees/metrics.py
imports: import numpy
  import sklearn.metrics
  from benchmarks.datasets import LearningTask
label_desc: Use image node_id 1 for calling a global function with example usage: get_metrics(y_test, pred, learning_task) and returns: regression_metrics, classification_metrics, classification_metrics_multilabel