code: func isGCEError(err error, reason string) bool {
  	apiErr, ok := err.(*googleapi.Error)
  	if !ok {
  		return false
  	}
  
  	for _, e := range apiErr.Errors {
  		if e.Reason == reason {
  			return true
  		}
  	}
  	return false
  }
docs: // isGCEError returns true if given error is a googleapi.Error with given
  // reason (e.g. "resourceInUseByAnotherResource")