code: def rte_post_process3(self, text, result):
      def get_span(text, template):
          match = re.findall(template, text)
          try:
              match = match[0]
          except IndexError:
              match = ""
          return match.strip()
  
      rst = self.replace_nomiss(result)
      matches = re.findall(RE_triple3, rst)
      new_record = []
      for m in matches:
          head = get_span(m, RE_triple3_head)
          rel = get_span(m, RE_triple3_rel)
          tail = get_span(m, RE_triple3_tail)
          if head == "" or rel == "" or tail == "":
              continue
          if head == self.NAN or tail == self.NAN:
              continue
          new_record.append((head, rel, tail))
  
      return new_record
  
file_path: DeepKE/example/llm/InstructKGC/kg2instruction/eval/extracter/re_extractor.py
imports: import sys
  import re
label_desc: Use image node_id 8 for calling the REExtractor obj's underlying member method code with example usage: obj.rte_post_process3(text, result) and returns: new_record, match