def is_accessible_bucket_name(bucket_name):
  scope = 'https://www.googleapis.com/auth/devstorage.read_write'
  url = 'https://%s.commondatastorage.googleapis.com/' % bucket_name
  auth_token, _ = app_identity.get_access_token(scope)
  result = urlfetch.fetch(url, method=urlfetch.HEAD, headers={
      'Authorization': 'OAuth %s' % auth_token,
      'x-goog-api-version': '2'})
  return result and result.status_code == 200
Open a SSHSession channel and connect a Protocol to it
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/datastore_admin/backup_handler.py/is_accessible_bucket_name--crossover with--dataset/ETHPy150Open sporsh/carnifex/carnifex/ssh/session.py/connectSession