<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def read_blocks(stream):
 """Generate parsed blocks from input stream """

    while True:
        header = _read_header(stream)
        block  = _read_block(header[1], stream)
        yield (header, block)