Can we generate source code if we have only pth file?

I usually saved a lot of *pth or *pt weight files. But for some reason, I lost the original code, then these weight files become useless. Therefore, I wonder is it possible to generate source code with only the *pt files? Or if I want to convert *pt file to code, what should I do?