This is done by calling `_task` at the end of the _task completion file, as is standard in completion files.
On my Ubuntu system this file was found in /usr/share/doc/task/scripts/zsh/_task.gz