[FX} Implement wrap() by patching module globals during symtrace (#50182)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/50182
Test Plan: Imported from OSS
Reviewed By: pbelevich
Differential Revision: D25819730
Pulled By: jamesr66a
fbshipit-source-id: 274f4799ad589887ecf3b94f5c24ecbe1bc14b1b