code: def image_exists(self, image_name, image_tag):
          
          try:
              self.get_image(image_name, image_tag)
              return True
          except docker.errors.ImageNotFound:
              return False
docs: Returns if the image exists locally.