code: func (d *Daemon) CheckPluginImage(plugin string) func(c *check.C) (interface{}, check.CommentInterface) {
  	return func(c *check.C) (interface{}, check.CommentInterface) {
  		apiclient := d.NewClientT(c)
  		resp, _, err := apiclient.PluginInspectWithRaw(context.Background(), plugin)
  		if client.IsErrNotFound(err) {
  			return false, check.Commentf("%v", err)
  		}
  		assert.NilError(c, err)
  		return resp.PluginReference, check.Commentf("%+v", resp)
  	}
  }
docs: // CheckPluginImage returns the runtime state of the plugin