class_docstr: Container builder for building and pushing a Docker image.
class_docstr_tok: ["Container","builder","for","building","and","pushing","a","Docker","image","."]
docstr: Checks whether the image exists on dockerhub using Docker v2 api.
  
  Args:
      image: image to check for.
  
  Returns:
      True if the image is found on dockerhub.
docstr_tok: ["Checks","whether","the","image","exists","on","dockerhub","using","Docker","v2","api",".","Args",":","image",":","image","to","check","for",".","Returns",":","True","if","the","image","is","found","on","dockerhub","."]
code: def _image_exists(self, image):
      """Checks whether the image exists on dockerhub using Docker v2 api.
  
      Args:
          image: image to check for.
  
      Returns:
          True if the image is found on dockerhub.
      """
      repo_name, tag_name = image.split(":")
      r = requests.get(
          "http://hub.docker.com/v2/repositories/{}/tags/{}".format(
              repo_name, tag_name
          )
      )
      return r.ok
  
imports: import logging
  import os
  import sys
  import tarfile
  import tempfile
  import time
  import uuid
  import warnings
  from .None import gcp
  from .None import machine_config
  import docker
  from google.cloud import storage
  from google.cloud.exceptions import NotFound
  from googleapiclient import discovery
  from googleapiclient import errors
  import requests
  from ..utils import google_api_client
  from ..utils import tf_utils
label_desc: Use image node_id 7 for calling the ContainerBuilder obj's underlying member method code with example usage: obj._image_exists(image) and returns: r