Revert "[Profiler] Move python tracing to unified event type (Part 2)"
This reverts commit c2a3c8186c3f3798684cecd60d62a991c223eeef.
Reverted https://github.com/pytorch/pytorch/pull/78164 on behalf of https://github.com/malfet due to Broke cuda-on-cpu tests, see https://hud.pytorch.org/pytorch/pytorch/commit/c2a3c8186c3f3798684cecd60d62a991c223eeef