def get_images():
      """Returns a list of images, padded to self._max_images_to_draw."""
      images = self._images
      while len(images) < self._max_examples_to_draw:
        images.append(np.array(0, dtype=np.uint8))
      self.clear()
      return images
Returns a list of images, padded to self._max_images_to_draw.
inference_api/src/main/object_detection/utils/visualization_utils.py