code: def normalize_tags(sents):
      new_sents = []
      # normalize tags
      for sent in sents:
          new_sentence = []
          for i, pair in enumerate(sent):
              w, t = pair
              if t.startswith("O"):
                  new_t = "O"
              elif t.startswith("I-"):
                  type = t[2:]
                  if type.startswith("MIS"):
                      new_t = "I-MISC"
                  elif type.startswith("-"):  # handle I--ORG
                      new_t = "I-" + type[1:]
                  else:
                      new_t = t
              elif t.startswith("B-"):
                  type = t[2:]
                  if type.startswith("MIS"):
                      new_t = "B-MISC"
                  elif type.startswith("ENGLISH") or type.startswith(
                      "SPANISH"
                  ):
                      new_t = "O"
                  else:
                      new_t = t
              else:
                  new_t = "O"
              # modify original tag
              new_sentence.append((sent[i][0], new_t))
          new_sents.append(new_sentence)
      return new_sents
  
imports: from collections import Counter
  import random
  import zipfile
  from stanza.utils.datasets.ner.utils import write_dataset
label_desc: Use image node_id 2 for calling a global function with example usage: normalize_tags(sents) and returns: new_sents