class_docstr_tok: []
code: def __init__(
      self,
      max_size=None,
      min_freq=None,
      padding="<pad>",
      unknown="<unk>",
  ):
      super().__init__(
          max_size=max_size,
          min_freq=min_freq,
          padding=padding,
          unknown=unknown,
      )
  
imports: from collections import Counter
  from functools import partial
  from functools import wraps
  from typing import List, Callable, Union
  from fastNLP.core.dataset import DataSet
  from fastNLP.core.utils.utils import Option
  from fastNLP.core.utils.utils import _is_iterable
  from .log import logger
  import io
label_desc: Use image node_id 1 to create a new VocabularyOption object from inherited base classes: Option with example: obj = VocabularyOption(max_size, min_freq, padding, unknown)