code: def __call__(self, preds, golds):
      for pred, gold in zip(preds, golds):
          upred = Counter([(i, j) for i, j, label in pred])
          ugold = Counter([(i, j) for i, j, label in gold])
          utp = list((upred & ugold).elements())
          lpred = Counter(pred)
          lgold = Counter(gold)
          ltp = list((lpred & lgold).elements())
          self.n += 1
          self.n_ucm += len(utp) == len(pred) == len(gold)
          self.n_lcm += len(ltp) == len(pred) == len(gold)
          self.utp += len(utp)
          self.ltp += len(ltp)
          self.pred += len(pred)
          self.gold += len(gold)
  
imports: from collections import Counter
label_desc: Use image node_id 2 for calling the BracketMetric obj's underlying member method code with example usage: obj.__call__(preds, golds) without return types