code: def get_words_pos(dictionary):
      output = {}
      for word in dictionary.words:
          data = dictionary.words[word]
          pos = list(set([_["pos"] for _ in data]))
          output[word] = pos
      return output
  
imports: import math
  from underthesea.dictionary import Dictionary
  from collections import Counter, defaultdict
  from underthesea.utils import logger
  from datetime import date, timedelta
  import pandas
label_desc: Use image node_id 1 for calling a global function with example usage: get_words_pos(dictionary) and returns: output