Re-enable doctests for task_summary
# What does this PR do?

This PR re-enables doctests for the task_summary. It should be merged after #15828
_The documentation is not available anymore as the PR was closed or merged._