code: def get_vocabs(self):
      src_vocab = pyonmttok.build_vocab_from_tokens(
          Counter(),
          maximum_size=0,
          minimum_frequency=1,
          special_tokens=[
              DefaultTokens.UNK,
              DefaultTokens.PAD,
              DefaultTokens.BOS,
              DefaultTokens.EOS,
          ],
      )
  
      tgt_vocab = pyonmttok.build_vocab_from_tokens(
          Counter(),
          maximum_size=0,
          minimum_frequency=1,
          special_tokens=[
              DefaultTokens.UNK,
              DefaultTokens.PAD,
              DefaultTokens.BOS,
              DefaultTokens.EOS,
          ],
      )
  
      vocabs = {"src": src_vocab, "tgt": tgt_vocab}
      return vocabs
  
file_path: OpenNMT-py/onmt/tests/test_models.py
imports: import copy
  import unittest
  import torch
  import pyonmttok
  from onmt.constants import DefaultTokens
  from collections import Counter
  import onmt
  import onmt.inputters
  import onmt.opts
  from onmt.model_builder import build_embeddings, build_encoder, build_decoder
  from onmt.utils.parse import ArgumentParser
label_desc: Use image node_id 2 for calling the TestModel obj's underlying member method code with example usage: obj.get_vocabs() and returns: vocabs