What’s your use case for this?
I’ve done a few such things for compiling ML models, but in the end I always regretted it.