Fix ProfilerTree Test (#101983)
Summary:
T152692570
Created from CodeHub with https://fburl.com/edit-in-codehub
Test Plan:
CI
Sandcastle run
Reviewed By: aaronenyeshi
Differential Revision: D45656571
Pull Request resolved: https://github.com/pytorch/pytorch/pull/101983
Approved by: https://github.com/aaronenyeshi