<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(self, amt=None):
 """Read at most amt bytes from the stream. If the amt argument is omitted, read all data. """

        chunk = self._raw_stream.read(amt)
        self._amount_read += len(chunk)
        return chunk