code: def test_dynamic_ranges():
      for type, values, eps in [
          (
              types.FLOAT,
              [
                  -1.0e30,
                  -1 - 1.0e-6,
                  -1,
                  -0.5,
                  -1.0e-30,
                  0,
                  1.0e-30,
                  0.5,
                  1,
                  1 + 1.0e-6,
                  1e30,
              ],
              0,
          ),
          (types.UINT8, [0, 1, 128, 254, 255], 0),
          (types.INT8, [-128, -127, -1, 0, 1, 127], 0),
          (types.UINT16, [0, 1, 32767, 32768, 65534, 65535], 0),
          (
              types.INT16,
              [-32768, -32767, -100, -1, 0, 1, 100, 32767],
              0,
          ),
          (
              types.UINT32,
              [0, 1, 0x7FFFFFFF, 0x80000000, 0xFFFFFFFE, 0xFFFFFFFF],
              128,
          ),
          (
              types.INT32,
              [-0x80000000, -0x7FFFFFFF, -100, -1, 0, 1, 0x7FFFFFFF],
              128,
          ),
      ]:
          for device in ("cpu", "gpu"):
              yield _test_type_conversion, device, type, values, type, values, eps
  
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 6 for calling a global function with example usage: test_dynamic_ranges() without return types