code: def tag_correct(data):
      correct_data = data
      TAG_MAP = {
          "N": "noun",
          "n": "noun",  # special case "đạo đức"
          "A": "adjective",
          "V": "verb",
          "P": "pronoun",
          "M": "numeral",
          "D": "determiner",
          "C": "conjunction",
          "O": "interjection",
          "R": "adverb",
          "I": "auxiliary",
          "E": "preposition",
      }
      for word in data:
          for i, node in enumerate(data[word]):
              tag = node["tag"]
              if tag in TAG_MAP:
                  correct_data[word][i]["tag"] = TAG_MAP[tag]
              # case for word 'khối'
              if word == "khối" and node["tag"] == "S":
                  correct_data[word][i]["tag"] = "adjective"
      return correct_data
  
imports: from os.path import join, dirname
  import joblib
  import yaml
label_desc: Use image node_id 1 for calling a global function with example usage: tag_correct(data) and returns: correct_data