[ONNX] Enclose package info for modules exported as local functions (#107409)
Enclose source package of modules that are exported as onnx local function in exported onnx model. GPT2 model example:
<img width="350" alt="image" src="https://github.com/pytorch/pytorch/assets/9376104/5e361bdd-ca24-45e7-a9ba-191c35acf3bb">
Pull Request resolved: https://github.com/pytorch/pytorch/pull/107409
Approved by: https://github.com/justinchuby
ghstack dependencies: #107408