code: def convert(vocab, words):
      """Converts a word list into a word ID list.
  
      Args:
          vocab (collections.defaultdict): A dictionary storing word IDs.
          words (list of str): A list of wards to convert.
  
      Returns:
          list of int: A list of word IDs.
  
      """
      return [vocab[w] for w in words]
  
imports: import collections
label_desc: Use image node_id 2 for calling a global function with example usage: convert(vocab, words) and returns: unknown