code: def f1_and_simple_accuracy(preds, labels):
      return {
          "f1": float(
              f1_score(y_true=labels, y_pred=preds, average="macro")
          ),
          "accuracy": simple_accuracy(preds, labels),
      }
  
file_path: datasets/metrics/xtreme_s/xtreme_s.py
imports: from typing import List
  from packaging import version
  from sklearn.metrics import f1_score
  import datasets
  from datasets.config import PY_VERSION
label_desc: Use image node_id 2 for calling a global function with example usage: f1_and_simple_accuracy(preds, labels) and returns: dict