Best-effort deserialize a `.jls` file

I am trying a workaround for precompiling code that is used via PythonCall.jl, involving serializing many method instances in one pass, and precompiling them in another, and serializing the MethodInstance values in between. On deserialization, I am seeing

UndefVarError: #pytuple_fromiter not defined . Is there a way to do a best-effort deserialization to skip over problematic values?