<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def enter_block(self, name):
 """Mark 'entering a block'."""

        section = self._get_section(name)
        block = self.current_block = section.new_block()
        self.blocks.append(block)
        return block