code: def bag_of_words_in_set(words, wordset):
      return bag_of_words(set(words) & wordset)
  
imports: import math
  from nltk import probability
label_desc: Use image node_id 2 for calling a global function with example usage: bag_of_words_in_set(words, wordset) and returns: bag_of_words