[WIP] JIT Static Hooks: serialization logic (#49545)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/49545
Test Plan: Imported from OSS
Reviewed By: heitorschueroff
Differential Revision: D25771121
Pulled By: Lilyjjo
fbshipit-source-id: fe08936d601618010b9c64e2bb769e0b67cb7187