def image_exists(self, image_name, image_tag):
try:<EOL><INDENT>self.get_image(image_name, image_tag)<EOL>return True<EOL><DEDENT>except docker.errors.ImageNotFound:<EOL><INDENT>return False<EOL><DEDENT>
Returns if the image exists locally.