def write_block(self, block_, body):
self.write('<STR_LIT>')<EOL>with self.indent_block():<EOL><INDENT>self.write('<STR_LIT>')<EOL>self.write('<STR_LIT>')<EOL>for checkpoint in block_.checkpoints:<EOL><INDENT>self.write_tmpl('<STR_LIT>', state=checkpoint)<EOL><DEDENT>self.write('<STR_LIT>')<EOL>self.write('<STR_LIT:}>')<EOL>with self.indent_block(-<NUM_LIT:1>):<EOL><INDENT>self.write(body)<EOL><DEDENT><DEDENT>self.write('<STR_LIT:}>')<EOL>
Outputs the boilerplate necessary for code blocks like functions.

        Args:
          block_: The Block object representing the code block.
          body: String containing Go code making up the body of the code block.