code: def bag_of_words(words):
      return dict([(word, True) for word in words])
  
imports: import math
  from nltk import probability
label_desc: Use image node_id 1 for calling a global function with example usage: bag_of_words(words) and returns: dict