code: func getTaskInfoByContainerID(containerID string, tasks []TaskInfo) *TaskInfo {
  	for _, task := range tasks {
  		if len(task.Statuses) > 0 && task.Statuses[0].ContainerStatusInfo.ID.Value == containerID {
  			return &task
  		}
  	}
  	return nil
  }
docs: // getTaskInfoByContainerID returns the TaskInfo struct matching the given cID.