code: def test_random_resized_crop():
      np.random.seed(12345)
      types = [dali.types.UINT8, dali.types.INT16, dali.types.FLOAT]
      sizes = [(100, 100), (320, 240)]
      for device in ["cpu", "gpu"]:
          for layout, max_frames in [
              ("FHWC", 8),
              ("FCHW", 1),
              ("CFHW", 1),
              ("HWC", None),
              ("CHW", None),
          ]:
              for aspect, area in [
                  ((0.5, 2), (0.1, 0.8)),
                  ((1, 2), (0.4, 1.0)),
                  ((0.5, 1), (0.1, 0.5)),
              ]:
                  input_type = types[np.random.randint(0, len(types))]
                  output_type = (
                      dali.types.FLOAT
                      if np.random.randint(0, 2)
                      else None
                  )
                  size = sizes[np.random.randint(0, len(sizes))]
                  yield (
                      _test_rrc,
                      device,
                      max_frames,
                      layout,
                      aspect,
                      area,
                      size,
                      input_type,
                      output_type,
                  )
  
file_path: DALI/dali/test/python/operator_2/test_random_resized_crop.py
imports: import numpy
  import nvidia.dali
  import nvidia.dali.fn
  import test_utils
label_desc: Use image node_id 10 for calling a global function with example usage: test_random_resized_crop() without return types