DOC: Prepare to add first docstrings checks to the CI
Fixing some docstring issues, so CI doesn't fail when we add the first validation of docstrings in #22854.

- [ ] closes #
- [ ] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
