We have it in Houdini
We have these in Houdini in various contexts for exactly the purpose you describe: Avoiding a large unwieldy node network where a snippet of code will do. Also not intended for large code blocks. We use them to encapsulate a little python or VEX script. We call them “wrangler” nodes. +1 for something similar in Blueprint.