func (d *Daemon) CheckPluginImage(ctx context.Context, plugin string) func(c *testing.T) (interface{}, string) {
    return func(c *testing.T) (interface{}, string) {
        apiclient := d.NewClientT(c)
        resp, _, err := apiclient.PluginInspectWithRaw(ctx, plugin)
        if errdefs.IsNotFound(err) {