Revert "Add python stack tracing option on on-demand flow (#80919)"
This reverts commit f50a248a5eacb9a9aa475a9e610486aea136e4f5.
Reverted https://github.com/pytorch/pytorch/pull/80919 on behalf of https://github.com/janeyx99 due to Sorry, reverting as this broke buck build/test https://hud.pytorch.org/pytorch/pytorch/commit/f50a248a5eacb9a9aa475a9e610486aea136e4f5