code: def accuracy(preds, labels):
      """return simple accuracy in expected dict format"""
      acc = simple_accuracy(preds, labels)
      return {"acc": acc}
  
file_path: nlp-architect/nlp_architect/utils/metrics.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  from scipy.stats import pearsonr, spearmanr
  from sklearn.metrics import f1_score
  from collections import defaultdict
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: accuracy(preds, labels) and returns: dict