1 article on this topic.
Graham Dumpleton's new Python library wrapture patches arbitrary call sites for testing and tracing without touching source code — a capability worth reviewing like any other dependency with deep runtime access.