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: import collections
  import sentencepiece
  import unicodedata
  from .args import str2bool
label_desc: Use image node_id 7 for calling a global function with example usage: convert_by_vocab(vocab, items) and returns: output