code: def check_seq(
      seq,
      channel_dim,
      w,
      h,
      aspect_ratio_range,
      area_range,
      value_range,
  ):
      frame_dim = 1 if channel_dim == 0 else 0
      frame_channel_dim = -1 if channel_dim == -1 else 0
      roi = None
      total_frames = seq.shape[frame_dim]
      for f in range(total_frames):
          frame = seq[:, f] if frame_dim == 1 else seq[f]
          roi = check_frame(
              frame,
              f,
              total_frames,
              frame_channel_dim,
              roi,
              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 4 for calling a global function with example usage: check_seq(seq, channel_dim, w, h, aspect_ratio_range, area_range, value_range) without return types