task 2: ast rewrite (#60622)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/60622
Test Plan: Imported from OSS
Reviewed By: jamesr66a
Differential Revision: D29493747
Pulled By: migeed-z
fbshipit-source-id: 684fcdfd3dd441e72c77bb7a4d64c18b9849a198