code: func ExecTask(t *testing.T, d *daemon.Daemon, task swarmtypes.Task, config types.ExecConfig) types.HijackedResponse {
  	t.Helper()
  	client := d.NewClientT(t)
  	defer client.Close()
  
  	ctx := context.Background()
  	resp, err := client.ContainerExecCreate(ctx, task.Status.ContainerStatus.ContainerID, config)
  	assert.NilError(t, err, "error creating exec")
  
  	startCheck := types.ExecStartCheck{}
  	attach, err := client.ContainerExecAttach(ctx, resp.ID, startCheck)
  	assert.NilError(t, err, "error attaching to exec")
  	return attach
  }
docs: // ExecTask runs the passed in exec config on the given task