[torch.package/TorchScript] flag to gate allowance of TS serializaiton in torch.package (#57678)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/57678
Test Plan: Imported from OSS
Reviewed By: suo
Differential Revision: D28232891
Pulled By: Lilyjjo
fbshipit-source-id: f6b2f4557cb98c4e811b7e3b665e0ffe88115555