code: def example_augment_images_and_polygons():
      print("Example: Augment Images and Polygons")
      import numpy as np
      import imgaug as ia
      import imgaug.augmenters as iaa
  
      images = np.zeros(
          (2, 128, 128, 3), dtype=np.uint8
      )  # two example images
      images[:, 64, 64, :] = 255
      polygons = [
          [ia.Polygon([(10.5, 10.5), (50.5, 10.5), (50.5, 50.5)])],
          [
              ia.Polygon(
                  [
                      (0.0, 64.5),
                      (64.5, 0.0),
                      (128.0, 128.0),
                      (64.5, 128.0),
                  ]
              )
          ],
      ]
  
      seq = iaa.Sequential(
          [
              iaa.AdditiveGaussianNoise(scale=0.05 * 255),
              iaa.Affine(translate_px={"x": (1, 5)}),
          ]
      )
  
      images_aug, polygons_aug = seq(images=images, polygons=polygons)
  
file_path: imgaug/checks/check_readme_examples.py
imports: from __future__ import print_function, division
  import functools
label_desc: Use image node_id 7 for calling a global function with example usage: example_augment_images_and_polygons() without return types