code: def _test_standalone_vs_fused(device):
      pipe = audio_decoder_pipe(
          device=device, batch_size=2, num_threads=1, device_id=0
      )
      pipe.build()
      is_gpu = device == "gpu"
      for _ in range(2):
          outs = pipe.run()
          # two sampling rates - should be bit-exact
          check_batch(
              outs[0],
              outs[1],
              eps=1e-6 if is_gpu else 0,
              max_allowed_error=1e-4 if is_gpu else 0,
          )
          # numerical round-off error in rate
          check_batch(
              outs[0], outs[2], eps=1e-6, max_allowed_error=1e-4
          )
          # here, the sampling rate is slightly different, so we can tolerate larger errors
          check_batch(outs[0], outs[3], eps=1e-4, max_allowed_error=1)
  
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 3 for calling a global function with example usage: _test_standalone_vs_fused(device) without return types