code: def main(args, logger):
      # Load quantized audio
      logger.info(
          f"Loading quantized audio from {args.quantized_unit_path}..."
      )
      (
          names_batch,
          quantized_units_batch,
      ) = load_quantized_audio_from_file(
          file_path=args.quantized_unit_path
      )
  
      logger.info(f"Loading TTS model from {args.tts_model_path}...")
      tacotron_model, sample_rate, hparams = load_tacotron(
          tacotron_model_path=args.tts_model_path,
          max_decoder_steps=args.max_decoder_steps,
      )
  
      logger.info(
          f"Loading Waveglow model from {args.waveglow_path}..."
      )
      waveglow, denoiser = load_waveglow(
          waveglow_path=args.waveglow_path
      )
  
      if not os.path.exists(hparams.code_dict):
          hparams.code_dict = args.code_dict_path
      tts_dataset = TacotronInputDataset(hparams)
  
      for name, quantized_units in zip(
          names_batch, quantized_units_batch
      ):
          quantized_units_str = " ".join(map(str, quantized_units))
          tts_input = tts_dataset.get_tensor(quantized_units_str)
          mel, aud, aud_dn, has_eos = synthesize_audio(
              tacotron_model,
              waveglow,
              denoiser,
              tts_input.unsqueeze(0),
              strength=args.denoiser_strength,
          )
          out_file_path = os.path.join(
              args.out_audio_dir, f"{name}.wav"
          )
          sf.write(
              f"{out_file_path}",
              aud_dn[0].cpu().float().numpy(),
              sample_rate,
          )
  
file_path: fairseq/examples/textless_nlp/gslm/unit2speech/synthesize_audio_from_units.py
imports: import argparse
  import logging
  import os
  import soundfile
  from examples.textless_nlp.gslm.unit2speech.tts_data import TacotronInputDataset
  from examples.textless_nlp.gslm.unit2speech.utils import load_quantized_audio_from_file, load_tacotron, load_waveglow, synthesize_audio
label_desc: Use image node_id 3 for calling a global function with example usage: main(args, logger) without return types