code: def fix_unk_from_text(span, text, unk="<unk>"):
      """
      Find span from the text to fix unk in the generated span
      从 text 中找到 span，修复span
  
      Example:
      span = "<unk> colo e Bengo"
      text = "At 159 meters above sea level , Angola International Airport is located at Ícolo e Bengo , part of Luanda Province , in Angola ."
  
      span = "<unk> colo e Bengo"
      text = "Ícolo e Bengo , part of Luanda Province , in Angola ."
  
      span = "Arr<unk> s negre"
      text = "The main ingredients of Arròs negre , which is from Spain , are white rice , cuttlefish or squid , cephalopod ink , cubanelle and cubanelle peppers . Arròs negre is from the Catalonia region ."
  
      span = "colo <unk>"
      text = "At 159 meters above sea level , Angola International Airport is located at e Bengo , part of Luanda Province , in Angola . coloÍ"
  
      span = "Tarō As<unk>"
      text = "The leader of Japan is Tarō Asō ."
  
      span = "Tar<unk> As<unk>"
      text = "The leader of Japan is Tarō Asō ."
  
      span = "<unk>Tar As<unk>"
      text = "The leader of Japan is ōTar Asō ."
      """
      if unk not in span:
          return span
  
      def clean_wildcard(x):
          sp = ".*?()[]+"
          return re.sub(
              "(" + "|".join([f"\\{s}" for s in sp]) + ")",
              "\\\\\g<1>",
              x,
          )
  
      match = r"\s*\S+\s*".join(
          [clean_wildcard(item.strip()) for item in span.split(unk)]
      )
  
      result = re.search(match, text)
  
      if not result:
          return span
      return result.group().strip()
  
label_desc: Use image node_id 1 for calling a global function with example usage: fix_unk_from_text(span, text, unk) and returns: result, span, re, span