code: def stem_word(word):
      """
      Stem_word() checks if the associated word has the correct tag and stems it.
      If it does not have the correct one then it throws an exception.
      So we check all available POS tags, until we get the correct one.
      In the future a working greek POS tagger can substitute the code of this function.
      """
      try:
          from greek_stemmer import stemmer as gr_stemmer
      except ImportError:
          raise ValueError(
              "Greek stemmer requires greek_stemmer. Please, install it by command 'pip install greek-stemmer-pos'."
          )
  
      stem_candidates = set()
  
      if len(word) < 4:
          return word.lower()
  
      for tag in _TOTAL_TAGS:
          try:
              stemmed = gr_stemmer.stem_word(word.lower(), tag)
              if stemmed and stemmed[-1].upper() in _CONSONANTS:
                  stem_candidates.add(stemmed)
          except (TypeError, ValueError):
              pass
  
      return min(stem_candidates or [word], key=len).lower()
  
label_desc: Use image node_id 1 for calling a global function with example usage: stem_word(word) and returns: min, word