code: def make_vocab(count, min_freq=3, max_vocab=60000, special_toks=None):
      "Create a vocab of `max_vocab` size from `Counter` `count` with items present more than `min_freq`"
      vocab = [
          o for o, c in count.most_common(max_vocab) if c >= min_freq
      ]
      special_toks = ifnone(special_toks, defaults.text_spec_tok)
      for o in reversed(
          special_toks
      ):  # Make sure all special tokens are in the vocab
          if o in vocab:
              vocab.remove(o)
          vocab.insert(0, o)
      vocab = vocab[:max_vocab]
      return vocab + [f"xxfake" for i in range(0, 8 - len(vocab) % 8)]
  
imports: from __future__ import annotations
  from ..torch_basics import *
  from ..data.all import *
  from .core import *
label_desc: Use image node_id 2 for calling a global function with example usage: make_vocab(count, min_freq, max_vocab, special_toks) and returns: unknown