<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(file, size=io.DEFAULT_BUFFER_SIZE):
 """Yield pieces of data from a file-like object until EOF."""

    while True:
        chunk = file.read(size)
        if not chunk:
            break
        yield chunk