Fix doctest CI
# What does this PR do?

Fix doctest CI, caused by a change in #20757. The change in multi-label example has some minor issue. See comments in the review.
_The documentation is not available anymore as the PR was closed or merged._