code: func NewTaskEngine(cfg *config.Config, client dockerapi.DockerClient,
  	credentialsManager credentials.Manager,
  	containerChangeEventStream *eventstream.EventStream,
  	imageManager ImageManager, state dockerstate.TaskEngineState,
  	metadataManager containermetadata.Manager,
  	resourceFields *taskresource.ResourceFields) TaskEngine {
  
  	taskEngine := NewDockerTaskEngine(cfg, client, credentialsManager,
  		containerChangeEventStream, imageManager,
  		state, metadataManager, resourceFields)
  
  	return taskEngine
  }
docs: // NewTaskEngine returns a default TaskEngine