I'm not sure if I would put `checked_call` in `inspect.py`. The fact that it uses inspect is an implementation detail, and not related to the purpose of the function.