read_and_reset()
Decorator that resets a file-like object back to the original position after the function has been called.
inner (file-like) – file to read and reset