<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def write(self, output):
 """ Writes specified text to the underlying stream Parameters output bytes-like object Bytes to write """

        self._stream.write(output)

        if self._auto_flush:
            self._stream.flush()