code: def convert_by_vocab(vocab, items):
      """Converts a sequence of [tokens|ids] using the vocab."""
      output = []
      for item in items:
          output.append(vocab[item])
      return output
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import re
  import unicodedata
  import six
  import tensorflow
label_desc: Use image node_id 5 for calling a global function with example usage: convert_by_vocab(vocab, items) and returns: output