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

@saurav2608 what is the reason to close this? the changes look good