That sounds really similar to mixins, where you also inject, get or somehow edit otherwise unaccessible code when the class loads at runtime. Does monkey-patching work even with read only packages?
spam lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor creativity violence