Cleanup internal functions in python_functions.cpp (#37536)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/37536
Test Plan: Imported from OSS
Differential Revision: D21312500
Pulled By: mrshenli
fbshipit-source-id: 52293323d2083d300712b1811cb6784419ea441c