code: def _generate(num_channels, compression_level, bitrate):
      org_path = "original.wav"
      ops_path = f"{bitrate}_{compression_level}_{num_channels}ch.opus"
  
      # Note: ffmpeg forces sample rate 48k Hz for opus https://stackoverflow.com/a/39186779
      # 1. generate original wav
      data = (
          torch.linspace(-32768, 32767, 32768, dtype=torch.int16)
          .repeat([num_channels, 1])
          .t()
      )
      scipy.io.wavfile.write(org_path, 48000, data.numpy())
      # 2. convert to opus
      convert_to_opus(
          org_path,
          ops_path,
          bitrate=bitrate,
          compression_level=compression_level,
      )
  
file_path: audio/test/torchaudio_unittest/assets/io/generate_opus.py
imports: import argparse
  import subprocess
  import scipy.io.wavfile
  import torch
label_desc: Use image node_id 3 for calling a global function with example usage: _generate(num_channels, compression_level, bitrate) without return types