code: def test_padded_build_vocab(
      num_types, pad_to_multiple_of, expected_vocab_size
  ):
      data = [" ".join("word%d" % i for i in range(num_types))]
      size = None
      min_count = 1
      vocab = build_vocab(
          data, size, min_count, pad_to_multiple_of=pad_to_multiple_of
      )
      assert len(vocab) == expected_vocab_size
  
file_path: sockeye/test/unit/test_vocab.py
imports: import pytest
  from unittest import mock
  from collections import Counter
  import sockeye.constants
  from sockeye.vocab import build_vocab, get_ordered_tokens_from_vocab, is_valid_vocab, _get_sorted_source_vocab_fnames, count_tokens
label_desc: Use image node_id 3 for calling a global function with example usage: test_padded_build_vocab(num_types, pad_to_multiple_of, expected_vocab_size) without return types