code: def check_output(
      output,
      channel_dim,
      input_shape,
      aspect_ratio_range,
      area_range,
      value_range,
  ):
      if len(input_shape) == 3:
          h, w = (
              input_shape[1:3] if channel_dim == 0 else input_shape[0:2]
          )
          check_frame(
              output,
              0,
              1,
              channel_dim,
              None,
              w,
              h,
              aspect_ratio_range,
              area_range,
              value_range,
          )
      else:
          hidx = 1 if channel_dim == -1 else 2
          h, w = input_shape[hidx : hidx + 2]
          check_seq(
              output,
              channel_dim,
              w,
              h,
              aspect_ratio_range,
              area_range,
              value_range,
          )
  
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 5 for calling a global function with example usage: check_output(output, channel_dim, input_shape, aspect_ratio_range, area_range, value_range) without return types