code: def _verify_docker_image_size(self, image_name):
      
      shell_call(['docker', 'pull', image_name])
      try:
        image_size = subprocess.check_output(
            ['docker', 'inspect', '--format={{.Size}}', image_name]).strip()
        image_size = int(image_size)
      except (ValueError, subprocess.CalledProcessError) as e:
        logging.error('Failed to determine docker image size: %s', e)
        return False
      logging.info('Size of docker image %s is %d', image_name, image_size)
      if image_size > MAX_DOCKER_IMAGE_SIZE:
        logging.error('Image size exceeds limit %d', MAX_DOCKER_IMAGE_SIZE)
      return image_size <= MAX_DOCKER_IMAGE_SIZE
docs: Verifies size of Docker image.
  
      Args:
        image_name: name of the Docker image.
  
      Returns:
        True if image size is within the limits, False otherwise.