code: def test_types():
      batch_size = 50
      dim = 4
      axes = [1, 2]
      out_type = np.uint8
      in_type = None
      for device in ["cpu", "gpu"]:
          for out_type, scale, shift in [
              (np.uint8, 64, 128),
              (np.int16, 1000, 0),
              (np.float32, 0.5, 0.5),
          ]:
              for in_type in [None, np.uint8, np.int16, np.float32]:
                  yield (
                      _run_test,
                      device,
                      batch_size,
                      dim,
                      axes,
                      None,
                      False,
                      out_type,
                      in_type,
                      shift,
                      scale,
                  )
  
imports: from nvidia.dali.pipeline import Pipeline
  from nvidia.dali import backend
  import nvidia.dali.ops
  import numpy
  from test_utils import dali_type
  from nvidia.dali import fn, pipeline_def, types
  from nose2.tools import params
label_desc: Use image node_id 21 for calling a global function with example usage: test_types() without return types