Clean up after running doc tests (#25036)
Summary:
](https://our.intern.facebook.com/intern/diff/16965612/)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/25036
Pulled By: driazati
Differential Revision: D16965612
fbshipit-source-id: 494a734c27c1330ea0917397efbad6bc4f40be73