<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_sample(fobj, sample):
 """Read `sample` bytes from `fobj` and return the cursor to where it was."""

    cursor = fobj.tell()
    data = fobj.read(sample)
    fobj.seek(cursor)
    return data