code: def main():
      image = ia.data.quokka(size=0.5)
      print(image.shape)
      kps = [
          ia.KeypointsOnImage(
              [
                  ia.Keypoint(x=123, y=102),
                  ia.Keypoint(x=182, y=98),
                  ia.Keypoint(x=155, y=134),
                  ia.Keypoint(x=-20, y=20),
              ],
              shape=(image.shape[0], image.shape[1]),
          )
      ]
      print("image shape:", image.shape)
  
      augs = [
          iaa.PiecewiseAffine(scale=0.05),
          iaa.PiecewiseAffine(scale=0.1),
          iaa.PiecewiseAffine(scale=0.2),
      ]
  
      ia.imshow(kps[0].draw_on_image(image))
  
      print("-----------------")
      print("Random aug per image")
      print("-----------------")
      for aug in augs:
          images_aug = []
          for _ in range(16):
              aug_det = aug.to_deterministic()
              img_aug = aug_det.augment_image(image)
              kps_aug = aug_det.augment_keypoints(kps)[0]
              img_aug_kps = keypoints_draw_on_image(kps_aug, img_aug)
              img_aug_kps = np.pad(
                  img_aug_kps,
                  ((1, 1), (1, 1), (0, 0)),
                  mode="constant",
                  constant_values=255,
              )
              images_aug.append(img_aug_kps)
          print(aug.name)
          ia.imshow(ia.draw_grid(images_aug))
  
imports: from __future__ import print_function, division
  import numpy
  import imgaug
  import imgaug.random
  from imgaug import augmenters
label_desc: Use image node_id 1 for calling a global function with example usage: main() without return types