If anyone is curious what it is doing, I am using the dis
module to disassemble the functions instructions and pulling the name of every argument used into a set, and comparing it to the keys in the lazy dictionary. Then it executes the string of code as written in said dictionary, then registers the imported method as global so it can be used by whatever function it @decorated
.
For anyone unfamiliar, here is an example of the information provided by dis
(called on the wrapper function as written above actually):