code: func IsInvalidCredentialsError(err error) bool {
  	isInvalidCredentialsError := false
  	if soap.IsSoapFault(err) {
  		_, isInvalidCredentialsError = soap.ToSoapFault(err).VimFault().(types.InvalidLogin)
  	}
  	return isInvalidCredentialsError
  }
docs: // IsInvalidCredentialsError returns true if error is of type InvalidLogin