code: def test_random_bbox_crop_variable_shape():
      random.seed(1234)
      aspect_ratio_ranges = {
          2: [[0.01, 100], [0.5, 2.0], [1.0, 1.0]],
          3: [
              [0.5, 2.0, 0.6, 2.1, 0.4, 1.9],
              [1.0, 1.0],
              [0.5, 0.5, 0.25, 0.25, 0.5, 0.5],
          ],
      }
      for batch_size in [3]:
          for ndim in [2, 3]:
              for scaling in [[0.3, 0.5], [0.1, 0.3], [0.9, 0.99]]:
                  for aspect_ratio in aspect_ratio_ranges[ndim]:
                      use_labels = random.choice([True, False])
                      out_bbox_indices = random.choice([True, False])
                      yield (
                          check_random_bbox_crop_variable_shape,
                          batch_size,
                          ndim,
                          scaling,
                          aspect_ratio,
                          use_labels,
                          out_bbox_indices,
                      )
  
imports: from nvidia.dali.pipeline import Pipeline
  from nvidia.dali import pipeline_def
  import nvidia.dali.ops
  import nvidia.dali.fn
  import nvidia.dali.types
  import numpy
  import random
label_desc: Use image node_id 8 for calling a global function with example usage: test_random_bbox_crop_variable_shape() without return types