Add utility to enable cpp stacktraces in torch.utils.debug (#38127)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/38127
Test Plan: Imported from OSS
Differential Revision: D21595298
Pulled By: albanD
fbshipit-source-id: 3926336cea2eaa0ef50bf9bfffd6c07f239d753f