Like, the imports at the top and the part that kicks off the event loop at the bottom. General stuff, not Blockly-specific, so I don't know of any particular documentation; I wasn't meaning any of that as technical terms. The "suitable workspace" I was talking about was just meaning to say "if you put the four blocks that would do those things into the Blockly workspace" -- not anything fancier than that. Obviously if you put in different blocks, it'll generate different code, which is exactly the point.
Blockly will let you generate functions and imperative code, but it can't do everything by itself, so you'll need to incorporate the code it generates into some larger framework in order to make anything useful out of it.
/s/ Adam