Only require python print on certain namespaces (#19383)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/19383
ghimport-source-id: b93c7849a52d11ecbf26b614704740d44a2447f9
Differential Revision: D15032727
Pulled By: bwasti
fbshipit-source-id: a19f72abb99e63d87eab13022538f325b2e20526