code: def validate_tags(data):
      for word in data:
          nodes = data[word]
          for node in nodes:
              tag = node["tag"]
              if tag not in VALID_TAGS:
                  warn(
                      "DICT",
                      "",
                      f'Tag {tag} in word "{word}" is not valid',
                  )
  
imports: import yaml
  from os.path import join, basename, dirname
  import joblib
  from termcolor import colored
label_desc: Use image node_id 3 for calling a global function with example usage: validate_tags(data) without return types