[docs] [issue39391] Nondeterministic Pydoc output on functions that have functions as default parameters