code: def count_instance_f1(self, gold_list, pred_list):
      self.gold_num += len(gold_list)
      self.pred_num += len(pred_list)
  
      if len(gold_list) > 0 and len(pred_list) > 0:
          assert len(gold_list[0]) == len(pred_list[0])
  
      dup_gold_list = deepcopy(gold_list)
      for pred in pred_list:
          if pred in dup_gold_list:
              self.tp += 1
              dup_gold_list.remove(pred)
  
file_path: DeepKE/example/triple/mt5/utils.py
imports: from datasets import Features, Value, Sequence
  import re
  from typing import List
  from copy import deepcopy
label_desc: Use image node_id 4 for calling the Metric obj's underlying member method code with example usage: obj.count_instance_f1(gold_list, pred_list) without return types