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 BZIP2 compressed stream cannot be decompressed.
    """
    try:
      uncompressed_data = self._bz2_decompressor.decompress(compressed_data)
      remaining_compressed_data = getattr(
          self._bz2_decompressor, u'unused_data', b'')

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

    return uncompressed_data, remaining_compressed_data
dataset/ETHPy150Open log2timeline/dfvfs/dfvfs/compression/bzip2_decompressor.py/BZIP2Decompressor.Decompress