code: def validate_num_words(data):
      global NUM_WORDS
      NUM_WORDS = len(data)
      if NUM_WORDS < MIN_WORDS_IN_DICT:
          warn(
              "DICT",
              "",
              f"Dictionary must has at least {MIN_WORDS_IN_DICT} words (found {NUM_WORDS})",
          )
  
imports: import yaml
  from os.path import join, basename, dirname
  import joblib
  from termcolor import colored
label_desc: Use image node_id 2 for calling a global function with example usage: validate_num_words(data) without return types