code: func IsErrUnauthorized(err error) bool {
  	if _, ok := err.(unauthorizedError); ok {
  		return ok
  	}
  	return errdefs.IsUnauthorized(err)
  }
docs: // IsErrUnauthorized returns true if the error is caused
  // when a remote registry authentication fails