def _flush_decoder(self):
        """
        Flushes the decoder. Should only be called if the decoder is actually
        being used.
        """
        if self._decoder:
            buf = self._decoder.decompress(b"")
            return buf + self._decoder.flush()

        return b""

        Flushes the decoder. Should only be called if the decoder is actually
        being used.
        
product/gradle-plugin/src/main/python/pip/_vendor/urllib3/response.py