code: def main():
      image = data.astronaut()
      image = ia.imresize_single_image(image, (64, 64))
      keypoints_on_image = ia.KeypointsOnImage(
          [ia.Keypoint(x=10, y=10)], shape=image.shape
      )
      images_arr = np.array([image for _ in range(NB_AUGS_PER_IMAGE)])
      images_list = [image for _ in range(NB_AUGS_PER_IMAGE)]
      keypoints_on_images = [
          keypoints_on_image.deepcopy()
          for _ in range(NB_AUGS_PER_IMAGE)
      ]
      print("image shape:", image.shape)
      print(
          "Press ENTER or wait %d ms to proceed to the next image."
          % (TIME_PER_STEP,)
      )
  
      children = [
          iaa.CoarseDropout(p=0.5, size_percent=0.05),
          iaa.AdditiveGaussianNoise(scale=0.1 * 255),
      ]
  
      n = [
          None,
          0,
          1,
          len(children),
          len(children) + 1,
          (1, 1),
          (1, len(children)),
          (1, len(children) + 1),
          (1, None),
      ]
  
      cv2.namedWindow("aug", cv2.WINDOW_NORMAL)
      cv2.resizeWindow("aug", 64 * NB_AUGS_PER_IMAGE, (2 + 4 + 4) * 64)
  
      rows = []
      for ni in n:
          aug = iaa.SomeOf(ni, children, random_order=False)
          rows.append(aug.augment_images(images_arr))
      grid = to_grid(rows, None)
      cv2.imshow("aug", grid[..., ::-1])  # here with rgb2bgr
      cv2.waitKey(TIME_PER_STEP)
  
      for ni in n:
          print("------------------------")
          print("-- %s" % (str(ni),))
          print("------------------------")
          aug = iaa.SomeOf(ni, children, random_order=False)
          aug_ro = iaa.SomeOf(ni, children, random_order=True)
  
          aug_det = aug.to_deterministic()
          aug_ro_det = aug_ro.to_deterministic()
  
          aug_kps = []
          aug_kps.extend(
              [aug_det.augment_keypoints(keypoints_on_images)] * 4
          )
          aug_kps.extend(
              [aug_ro_det.augment_keypoints(keypoints_on_images)] * 4
          )
  
          aug_rows = []
          aug_rows.append(images_arr)
          aug_rows.append(images_list)
  
          aug_rows.append(aug_det.augment_images(images_arr))
          aug_rows.append(aug_det.augment_images(images_arr))
          aug_rows.append(aug_det.augment_images(images_list))
          aug_rows.append(aug_det.augment_images(images_list))
  
          aug_rows.append(aug_ro_det.augment_images(images_arr))
          aug_rows.append(aug_ro_det.augment_images(images_arr))
          aug_rows.append(aug_ro_det.augment_images(images_list))
          aug_rows.append(aug_ro_det.augment_images(images_list))
  
          grid = to_grid(aug_rows, aug_kps)
  
          title = "n=%s" % (str(ni),)
          grid = ia.draw_text(grid, x=5, y=5, text=title)
  
          cv2.imshow("aug", grid[..., ::-1])  # here with rgb2bgr
          cv2.waitKey(TIME_PER_STEP)
  
file_path: imgaug/checks/check_some_of.py
imports: from __future__ import print_function, division
  import cv2
  import numpy
  from skimage import data
  import imgaug
  from imgaug import augmenters
label_desc: Use image node_id 1 for calling a global function with example usage: main() without return types