class_docstr: Class which performs validation of the submission.
class_docstr_tok: ["Class","which","performs","validation","of","the","submission","."]
docstr: Verifies size of Docker image.
  
  Args:
    image_name: name of the Docker image.
  
  Returns:
    True if image size is within the limits, False otherwise.
docstr_tok: ["Verifies","size","of","Docker","image",".","Args",":","image_name",":","name","of","the","Docker","image",".","Returns",":","True","if","image","size","is","within","the","limits",",","False","otherwise","."]
code: def _verify_docker_image_size(self, image_name):
      """Verifies size of Docker image.
  
      Args:
        image_name: name of the Docker image.
  
      Returns:
        True if image size is within the limits, False otherwise.
      """
      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
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from builtins import int
  import csv
  import json
  import logging
  import os
  import re
  import subprocess
  import sys
  import numpy
  from PIL import Image
  from six import iteritems
label_desc: Use image node_id 6 for calling the SubmissionValidator obj's underlying member method code with example usage: obj._verify_docker_image_size(image_name) and returns: unknown, False