code: def update(self, other_metric):
      self.tp += other_metric.tp
      self.cnt += other_metric.cnt
      self.gold_num += other_metric.gold_num
      self.pred_num += other_metric.pred_num
      self.rouge_1 += other_metric.rouge_1
      self.rouge_2 += other_metric.rouge_2
      self.rouge_l += other_metric.rouge_l
  
imports: from typing import Any
  import jieba
  from rouge_chinese import Rouge
  import rouge
  import re
  from copy import deepcopy
  from collections import defaultdict
label_desc: Use image node_id 2 for calling the Metric obj's underlying member method code with example usage: obj.update(other_metric) without return types