Request for review of "gh-87533: Expand pickle importing to support non-package C-modules"

PR: Expand pickle importing to support non-package C-modules

I am looking for reviewers for a patch I desire to how pickle loads non-package modules, like those created via PyModule_Create. Erroring while trying to serialize PyModule_Create attributes has been a recurring issue in PyTorch for at least 4 years:

The workaround for this issue has been to manually insert these modules into sys.modules:

I am proposing that instead of always doing what equates to import package.c_module, we can try from package import c_module, and if we notice that "package.c_module" not in sys.modules after __import__("package", fromlist=["c_module"]), we can return getattr(package, "c_module").