def Decode(self, encoded_data):
    """Decode the encoded data.

    Args:
      encoded_data: a byte string containing the encoded data.

    Returns:
      A tuple containing a byte string of the decoded data and
      the remaining encoded data.

    Raises:
      BackEndError: if the base32 stream cannot be decoded.
    """
    try:
      decoded_data = base64.b32decode(encoded_data, casefold=False)
    except (__HOLE__, binascii.Error) as exception:
      raise errors.BackEndError(
          u'Unable to decode base32 stream with error: {0!s}.'.format(
              exception))

    return decoded_data, b''


# Register the decoder with the encoding manager.
dataset/ETHPy150Open log2timeline/dfvfs/dfvfs/encoding/base32_decoder.py/Base32Decoder.Decode