code: def fix_sentence(sentence):
      """
      Fix some of the mistags in the dataset
  
      This covers 11 sentences: 1 P-PERSON, 2 with line breaks in the middle of the tag, and 8 with no B- or I-
      """
      new_sentence = []
      for word_idx, word in enumerate(sentence):
          if word[1] == "P-PERSON":
              new_sentence.append((word[0], "B-PERSON"))
          elif word[1] == 'B-OT"':
              new_sentence.append((word[0], "B-OTHERS"))
          elif word[1] == 'B-T"':
              new_sentence.append((word[0], "B-TITLE"))
          elif word[1] in ("GPE", "LOC", "OTHERS"):
              if (
                  len(new_sentence) > 0
                  and new_sentence[-1][1][:2] in ("B-", "I-")
                  and new_sentence[-1][1][2:] == word[1]
              ):
                  # one example... no idea if it should be a break or
                  # not, but the last word translates to "Corporation",
                  # so probably not: ميٽرو پوليٽن ڪارپوريشن
                  new_sentence.append((word[0], "I-" + word[1]))
              else:
                  new_sentence.append((word[0], "B-" + word[1]))
          else:
              new_sentence.append(word)
      return new_sentence
  
label_desc: Use image node_id 1 for calling a global function with example usage: fix_sentence(sentence) and returns: new_sentence