yt.funcs.
print_tb
This function is used as a decorate on a function to have the calling stack printed whenever that function is entered.
This can be used like so:
@print_tb def some_deeply_nested_function(...):