code: def dispatch_vocoder(
      dense_model_name: str,
      quantizer_name: str,
      vocoder_name: str,
      vocab_size: int,
      **kwargs,
  ):
      if vocoder_name == "tacotron":
          vocoder = TacotronVocoder.by_name(
              dense_model_name,
              quantizer_name,
              vocab_size,
          )
      if vocoder_name == "hifigan":
          vocoder = CodeHiFiGANVocoder.by_name(
              dense_model_name, quantizer_name, vocab_size, **kwargs
          )
      else:
          assert False, "Unsupported vocoder name"
      return vocoder
  
file_path: textlesslib/textless/__init__.py
imports: from textless.data.cpc_feature_reader import CpcFeatureReader
  from textless.data.hubert_feature_reader import HubertFeatureReader
  from textless.data.kmeans_quantizer import KMeansQuantizer
  from textless.checkpoint_manager import CHECKPOINT_MANAGER
  from textless.vocoders.tacotron2.vocoder import TacotronVocoder
  from textless.vocoders.hifigan.vocoder import CodeHiFiGANVocoder
label_desc: Use image node_id 3 for calling a global function with example usage: dispatch_vocoder(dense_model_name, quantizer_name, vocoder_name, vocab_size) and returns: vocoder