code: def count_instance(self, gold_text, pred_text, gold_list, pred_list):
      self.cnt += 1
      gold_list = [tuple(it) for it in gold_list]
      pred_list = [tuple(it) for it in pred_list]
      if self.match_mode == "set":
          gold_list = set(gold_list)
          pred_list = set(pred_list)
      print(gold_list)
      print(pred_list)
  
      self.ee_gold_num += len(gold_list)
      self.ee_pred_num += len(pred_list)
      pred_mapper = {}
      gold_mapper = {}
      for it in pred_list:
          pred_mapper[(it[0], it[1])] = set(it[2])
          self.ag_pred_num += len(it[2])
      for it in gold_list:
          gold_mapper[(it[0], it[1])] = set(it[2])
          self.ag_gold_num += len(it[2])
  
      for pred_ee, pred_ag in pred_mapper.items():
          if pred_ee in gold_mapper:
              self.ee_tp += 1
              for ag in pred_ag:
                  if ag in gold_mapper[pred_ee]:
                      self.ag_tp += 1
  
      if "rouge" in self.metrics_list:
          rouge_1, rouge_2, rouge_l = self.get_rouge_score(
              pred=pred_text, gold=gold_text
          )
          self.rouge_1 += rouge_1
          self.rouge_2 += rouge_2
          self.rouge_l += 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 7 for calling the EEMetric obj's underlying member method code with example usage: obj.count_instance(gold_text, pred_text, gold_list, pred_list) without return types