[FX] Preserve type annotations on generated code in Graph (#45880)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/45880
Test Plan: Imported from OSS
Reviewed By: dzhulgakov
Differential Revision: D24127303
Pulled By: jamesr66a
fbshipit-source-id: 3a042bcfb0bf9f58ac318cc814dfc3cca683c7f8