code: def convert_by_vocab(
      vocab: collections.OrderedDict, items: List[str]
  ) -> List:
      """Converts a sequence of [tokens|ids] using the vocab."""
      output = []
      for item in items:
          output.append(vocab[item])
  
      return output
  
imports: import collections
  import io
  import pickle
  import unicodedata
  from typing import List, Union
label_desc: Use image node_id 3 for calling a global function with example usage: convert_by_vocab(vocab, items) and returns: output