BUG in read_pickle
- [x] closes #47895
- [x]  passes all checks
- [ ] Fixed note in the latest `pandas/io/pickle.py`

Hello @Kinza-Raza! Thanks for updating this PR. We checked the lines you've touched for [PEP 8](https://www.python.org/dev/peps/pep-0008) issues, and found:



There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers: 

##### Comment last updated at 2022-08-09 00:07:23 UTC @MarcoGorelli I was trying to build the documentation as explained [here](https://pandas.pydata.org/docs/dev/development/contributing_documentation.html#how-to-build-the-pandas-documentation) but got some import errors (modules not found) even though I built the dev environment with docker.

It says in **make.py**

> To build the docs you must have all optional dependencies for pandas
installed. See the installation instructions for a list of these.

Could you redirect me to the installation instructions for future reference so I can view the changes I'm making? Many thanks! > Could you redirect me to the installation instructions for future reference so I can view the changes I'm making? Many thanks!

The instructions should all be in https://pandas.pydata.org/docs/development/contributing.html - if anything's not clear / doesn't work, please do feel free to ask for help