code: def contains(self, name):
      
      try:
        self._api.buckets_get(name)
      except google.datalab.utils.RequestException as e:
        if e.status == 404:
          return False
        raise e
      except Exception as e:
        raise e
      return True
docs: Checks if the specified bucket exists.
  
      Args:
        name: the name of the bucket to lookup.
      Returns:
        True if the bucket exists; False otherwise.
      Raises:
        Exception if there was an error requesting information about the bucket.