code: def get_feval(feval):
      if isinstance(feval, str):
          return EVALUATE_DICT[feval]
      if isinstance(feval, type) and issubclass(feval, Evaluation):
          return feval
      if isinstance(feval, _typing.Sequence):
          return [get_feval(f) for f in feval]
      raise ValueError(
          "feval argument of type", type(feval), "is not supported!"
      )
  
imports: import numpy
  import typing
  from sklearn.metrics import f1_score, log_loss, accuracy_score, roc_auc_score, label_ranking_average_precision_score
label_desc: Use image node_id 2 for calling a global function with example usage: get_feval(feval) and returns: EVALUATE_DICT, feval, unknown