style_doc handles decorators in examples
# What does this PR do?

This fixes the issue encountered in #15564 and make the `style_doc` util handle the decorators properly.
_The documentation is not available anymore as the PR was closed or merged._