code: def flush(self):
          
          chunks = []
          chunks.append(self._compress(b'', lib.BROTLI_OPERATION_FLUSH))
  
          while lib.BrotliEncoderHasMoreOutput(self._encoder) == lib.BROTLI_TRUE:
              chunks.append(self._compress(b'', lib.BROTLI_OPERATION_FLUSH))
  
          return b''.join(chunks)
docs: Flush the compressor. This will emit the remaining output data, but
          will not destroy the compressor. It can be used, for example, to ensure
          that given chunks of content will decompress immediately.