code: def _augment_images_by_samples(self, images, samples):
      if not self.keep_size:
          images = list(images)
  
      kernel_sizes_h, kernel_sizes_w = samples
  
      gen = enumerate(zip(images, kernel_sizes_h, kernel_sizes_w))
      for i, (image, ksize_h, ksize_w) in gen:
          if ksize_h >= 2 or ksize_w >= 2:
              image_pooled = self._pool_image(image, ksize_h, ksize_w)
              if self.keep_size:
                  image_pooled = ia.imresize_single_image(
                      image_pooled, image.shape[0:2]
                  )
              images[i] = image_pooled
  
      return images
  
imports: from __future__ import print_function, division, absolute_import
  from abc import ABCMeta, abstractmethod
  import functools
  import six
  import numpy
  import imgaug
  from .None import meta
  from ..None import parameters
label_desc: Use image node_id 5 for calling the _AbstractPoolingBase obj's underlying member method code with example usage: obj._augment_images_by_samples(images, samples) and returns: images