def Decompress(self, compressed_data):
    """Decompresses the compressed data.

    Args:
      compressed_data: a byte string containing the compressed data.

    Returns:
      A tuple containing a byte string of the uncompressed data and
      the remaining compressed data.

    Raises:
      BackEndError: if the XZ compressed stream cannot be decompressed.
    """
    try:
      # Note that we cannot use max_length=0 here due to different
      # versions of the lzma code.
      uncompressed_data = self._lzma_decompressor.decompress(
          compressed_data, 0)
      remaining_compressed_data = getattr(
          self._lzma_decompressor, u'unused_data', b'')

    except (EOFError, __HOLE__, LZMAError) as exception:
      raise errors.BackEndError((
          u'Unable to decompress XZ compressed stream with error: '
          u'{0!s}.').format(exception))

    return uncompressed_data, remaining_compressed_data
dataset/ETHPy150Open log2timeline/dfvfs/dfvfs/compression/xz_decompressor.py/XZDecompressor.Decompress