class_docstr: Base Vocabulary class.
  
  This class only needs a vocabulary dictionary without specifying the characters.
  
  Args:
      vocab (Dict): A dictionary of characters and their corresponding indices.
docstr: Initialize from the given config.
docstr_tok: ["Initialize","from","the","given","config","."]
code: def init_from_config(config, **kwargs):
      """Initialize from the given config."""
      if (
          config.characters is not None
          and "vocab_dict" in config.characters
          and config.characters.vocab_dict
      ):
          return (
              BaseVocabulary(
                  config.characters.vocab_dict,
                  config.characters.pad,
                  config.characters.blank,
                  config.characters.bos,
                  config.characters.eos,
              ),
              config,
          )
      return BaseVocabulary(**kwargs), config
  
imports: from dataclasses import replace
  from typing import Dict
  from TTS.tts.configs.shared_configs import CharactersConfig
label_desc: Use image node_id 8 for calling the BaseVocabulary obj's underlying member method code with example usage: obj.init_from_config(config) and returns: BaseVocabulary,  config, BaseVocabulary,  config