code: def audio_decoder_pipe(device):
      encoded, _ = fn.readers.file(files=names)
      audio0, sr0 = fn.decoders.audio(encoded, dtype=types.FLOAT)
      out_sr = 15000
      audio1, sr1 = fn.decoders.audio(
          encoded, dtype=types.FLOAT, sample_rate=out_sr
      )
      if device == "gpu":
          audio0 = audio0.gpu()
      audio2 = fn.audio_resample(audio0, in_rate=sr0, out_rate=out_sr)
      audio3 = fn.audio_resample(audio0, scale=out_sr / sr0)
      audio4 = fn.audio_resample(
          audio0, out_length=fn.shapes(audio1)[0]
      )
      return audio1, audio2, audio3, audio4
  
file_path: DALI/dali/test/python/operator_1/test_audio_resample.py
imports: import numpy
  import scipy.io.wavfile
  from nvidia.dali import fn, pipeline_def, types
  from test_audio_decoder_utils import generate_waveforms
  from test_utils import check_batch, dali_type_to_np, as_array
label_desc: Use image node_id 2 for calling a global function with example usage: audio_decoder_pipe(device) and returns: audio1,  audio2,  audio3,  audio4