code: def acc_and_f1(preds: List[int], labels: List[int]):
      accuracy = (preds == labels).mean()
      f1 = f1_score(y_true=labels, y_pred=preds)
      return {"acc": accuracy, "f1": f1}
  
imports: from typing import Dict, List
  from scipy.stats import pearsonr, spearmanr
  from sklearn.metrics import f1_score, matthews_corrcoef
label_desc: Use image node_id 2 for calling a global function with example usage: acc_and_f1(preds, labels) and returns: dict