code: func imagePullPrivileged(ctx context.Context, cli command.Cli, imgRefAndAuth trust.ImageRefAndAuth, opts PullOptions) error {
  	ref := reference.FamiliarString(imgRefAndAuth.Reference())
  
  	encodedAuth, err := command.EncodeAuthToBase64(*imgRefAndAuth.AuthConfig())
  	if err != nil {
  		return err
  	}
  	requestPrivilege := command.RegistryAuthenticationPrivilegedFunc(cli, imgRefAndAuth.RepoInfo().Index, "pull")
  	options := types.ImagePullOptions{
  		RegistryAuth:  encodedAuth,
  		PrivilegeFunc: requestPrivilege,
  		All:           opts.all,
  		Platform:      opts.platform,
  	}
  	responseBody, err := cli.Client().ImagePull(ctx, ref, options)
  	if err != nil {
  		return err
  	}
  	defer responseBody.Close()
  
  	out := cli.Out()
  	if opts.quiet {
  		out = streams.NewOut(ioutil.Discard)
  	}
  	return jsonmessage.DisplayJSONMessagesToStream(responseBody, out, nil)
  }
docs: // imagePullPrivileged pulls the image and displays it to the output