code: def update(self, predicted, gold, word_num):
      self.word_num += word_num
  
      self.total += len(gold)
      self.predicted += len(predicted)
      self.recalled += len(set(gold) & set(predicted))
      return
  
imports: import logging
  import numpy
  from collections import Counter, defaultdict
  from scipy.optimize import linear_sum_assignment
  from .blanc import blanc, tuple_to_metric
label_desc: Use image node_id 2 for calling the MentionEvaluator obj's underlying member method code with example usage: obj.update(predicted, gold, word_num) without return types