class_docstr: tests Vocabulary Class
class_docstr_tok: ["tests","Vocabulary","Class"]
code: def test_creation_with_counter(self):
      self.assertEqual(
          self.vocab,
          Vocabulary(
              Counter(
                  [
                      "z",
                      "a",
                      "b",
                      "c",
                      "f",
                      "d",
                      "e",
                      "g",
                      "a",
                      "d",
                      "b",
                      "e",
                      "w",
                  ]
              ),
              unk_cutoff=2,
          ),
      )
  
imports: import unittest
  from collections import Counter
  from timeit import timeit
  from nltk.lm import Vocabulary
label_desc: Use image node_id 20 for calling the NgramModelVocabularyTests obj's underlying member method code with example usage: obj.test_creation_with_counter() without return types