In this example there is an error in the function `preprocess` which is part of a composed function.  There are multiple problems here 1. The traceback doesn't tell us which module `preprocess` belongs to 2. The traceback doesn't tell us at which line of `preprocess` the error occurs Any ideas on how to improve the tracebacks? Perhaps python have builtin decorators for this?
In this example there is an error in the function
preprocesswhich is part of a composed function.There are multiple problems here
preprocessbelongs topreprocessthe error occursAny ideas on how to improve the tracebacks? Perhaps python have builtin decorators for this?