#NEWLINE# def Decode( self , encoded_data ) : #NEWLINE# #INDENT# 'Decode the encoded data.\n\n    Args:\n      encoded_data: a byte string containing the encoded data.\n\n    Returns:\n      A tuple containing a byte string of the decoded data and\n      the remaining encoded data.\n\n    Raises:\n      BackEndError: if the base32 stream cannot be decoded.\n    ' #NEWLINE# try : #NEWLINE# #INDENT# decoded_data = base64 . b32decode ( encoded_data , casefold = False ) #NEWLINE# #UNINDENT# except ( TypeError , binascii . Error ) as exception : #NEWLINE# #INDENT# raise errors . BackEndError ( 'Unable to decode base32 stream with error: {0!s}.' . format ( decoded_data ) ) #NEWLINE# #UNINDENT# return ( decoded_data , b'' )