code: def write(self, output):
          
          self._stream.write(output)
  
          if self._auto_flush:
              self._stream.flush()
docs: Writes specified text to the underlying stream
  
          Parameters
          ----------
          output bytes-like object
              Bytes to write