[BE] Update requests to 2.31.0 (#119516)
Fixes potential memory leak detected by DepandaBot and reported in https://nvd.nist.gov/vuln/detail/CVE-2023-32681
Pull Request resolved: https://github.com/pytorch/pytorch/pull/119516
Approved by: https://github.com/kit1980, https://github.com/seemethere