code: func RetrieveAuthTokenFromImage(ctx context.Context, cli Cli, image string) (string, error) {
  	// Retrieve encoded auth token from the image reference
  	authConfig, err := resolveAuthConfigFromImage(ctx, cli, image)
  	if err != nil {
  		return "", err
  	}
  	encodedAuth, err := EncodeAuthToBase64(authConfig)
  	if err != nil {
  		return "", err
  	}
  	return encodedAuth, nil
  }
docs: // RetrieveAuthTokenFromImage retrieves an encoded auth token given a complete image