code: def main(args):
      logger.info(args)
  
      use_cuda = torch.cuda.is_available() and not args.cpu
  
      vocoder = load_vocoder(args.vocoder, args.vocoder_cfg, use_cuda)
  
      data = load_data(args.in_file)
  
      if args.results_path:
          Path(args.results_path).mkdir(exist_ok=True, parents=True)
  
      channels = args.channels.split(",")
      speakers = [args.channel1_spk, args.channel2_spk]
  
      for i, d in tqdm(enumerate(data), total=len(data)):
          wavs = []
          for key, speaker_id in zip(channels, speakers):
              wav = code2wav(
                  vocoder, d[key], speaker_id, use_cuda=use_cuda
              )
              wavs.append(wav)
  
          wav = torch.stack(wavs, dim=-1)
          if args.mix:
              wav = torch.mean(wav, dim=-1)
  
          dump_result(args, d, i, wav)
  
file_path: fairseq/examples/textless_nlp/dgslm/vocoder_hifigan/generate_stereo_waveform.py
imports: import ast
  import argparse
  import json
  import logging
  from pathlib import Path
  import soundfile
  import torch
  from tqdm import tqdm
  from fairseq import utils
  from fairseq.models.text_to_speech.vocoder import CodeHiFiGANVocoder
label_desc: Use image node_id 5 for calling a global function with example usage: main(args) without return types