<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_chunks(stream, block_size=2**10):
 """ Given a byte stream with reader, yield chunks of block_size until the stream is consusmed. """

    while True:
        chunk = stream.read(block_size)
        if not chunk:
            break
        yield chunk