code: def squad_base(preds, labels):
      em = squad_EM(preds=preds, labels=labels)
      f1 = squad_f1(preds=preds, labels=labels)
      top_acc = top_n_accuracy(preds=preds, labels=labels)
      return {"EM": em, "f1": f1, "top_n_accuracy": top_acc}
  
imports: import logging
  import numpy
  import torch
  from functools import reduce
  from scipy.stats import pearsonr, spearmanr
  from seqeval.metrics import classification_report
  from seqeval.metrics import f1_score
  from sklearn.metrics import matthews_corrcoef, f1_score, mean_squared_error, r2_score, classification_report
  from farm.utils import flatten_list
label_desc: Use image node_id 15 for calling a global function with example usage: squad_base(preds, labels) and returns: dict