code: def __call__(self, preds, golds):
      for pred, gold in zip(preds, golds):
          pred, gold = set(pred), set(gold)
          self.tp += len(pred & gold)
          self.pred += len(pred)
          self.gold += len(gold)
  
imports: from collections import Counter
label_desc: Use image node_id 2 for calling the SpanMetric obj's underlying member method code with example usage: obj.__call__(preds, golds) without return types