code: def build_xpos_vocab(description, data, shorthand):
      if description.xpos_type is XPOSType.WORD:
          return WordVocab(data, shorthand, idx=2, ignore=["_"])
  
      return XPOSVocab(data, shorthand, idx=2, sep=description.sep)
  
file_path: stanza/stanza/models/pos/xpos_vocab_utils.py
imports: from collections import namedtuple
  from enum import Enum
  import logging
  import os
  from stanza.models.common.vocab import VOCAB_PREFIX
  from stanza.models.pos.vocab import XPOSVocab, WordVocab
label_desc: Use image node_id 3 for calling a global function with example usage: build_xpos_vocab(description, data, shorthand) and returns: XPOSVocab, WordVocab