docs: def flush(self):
          """
          Flush the write buffers of the stream if applicable and
          save the object on the cloud.
          """
          if self._writable:
              with self._seek_lock:
                  buffer = self._get_buffer()
  
                  # Flush that part of the file
                  end = self._seek
                  start = end - len(buffer)
  
                  # Clear buffer
                  self._write_buffer = bytearray()
  
              # Flush content
              with handle_os_exceptions():
                  self._flush(buffer, start, end)