Remove unused reconstruct_scopes function (#48822)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/48822
Test Plan: Imported from OSS
Reviewed By: ZolotukhinM
Differential Revision: D25325012
Pulled By: cccclai
fbshipit-source-id: 86ea4c0b2926257c0f82aa05cbcd83278b1b67f7