[jit] make `python_str` take a custom renamer (#35717)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/35717
We need to provide calling code the ability to customize how type names
are printed. Will be used to mangle names in python_print, stacked on
top.
Test Plan: Imported from OSS
Differential Revision: D20749424
Pulled By: suo
fbshipit-source-id: f110ab569c81e8934487295cd67009fc626ac194