<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def copyfileobj(fsrc, fdst, length=16*1024):
 """copy data from file-like object fsrc to file-like object fdst"""

    while 1:
        buf = fsrc.read(length)
        if not buf:
            break
        fdst.write(buf)