code: func (c *Cluster) GetTask(input string) (types.Task, error) {
  	var task *swarmapi.Task
  	if err := c.lockedManagerAction(func(ctx context.Context, state nodeState) error {
  		t, err := getTask(ctx, state.controlClient, input)
  		if err != nil {
  			return err
  		}
  		task = t
  		return nil
  	}); err != nil {
  		return types.Task{}, err
  	}
  	return convert.TaskFromGRPC(*task)
  }
docs: // GetTask returns a task by an ID.