code: func NewTasksResponse(state dockerstate.TaskEngineState) *TasksResponse {
  	allTasks := state.AllTasks()
  	taskResponses := make([]*TaskResponse, len(allTasks))
  	for ndx, task := range allTasks {
  		containerMap, _ := state.ContainerMapByArn(task.Arn)
  		taskResponses[ndx] = NewTaskResponse(task, containerMap)
  	}
  
  	return &TasksResponse{Tasks: taskResponses}
  }
docs: // NewTasksResponse creates TasksResponse for all the tasks.