code: def init_vocab(self, data):
      assert self.eval == False  # for eval vocab must exist
      vocab = Vocab(data, self.args["shorthand"])
      return vocab
  
file_path: stanza/stanza/models/mwt/data.py
imports: import random
  import numpy
  import os
  from collections import Counter
  import logging
  import torch
  import stanza.models.common.seq2seq_constant
  from stanza.models.common.data import map_to_ids, get_long_tensor, get_float_tensor, sort_all
  from stanza.models.mwt.vocab import Vocab
  from stanza.models.common.doc import Document
label_desc: Use image node_id 2 for calling the DataLoader obj's underlying member method code with example usage: obj.init_vocab(data) and returns: vocab