def text_base64decode(data):
        '''
        Base64 decode to unicode text.
        
        :param str data: String data to decode to unicode.
        :return: Base64 decoded string.
        :rtype: str
        '''
        try:
            return b64decode(data.encode('utf-8')).decode('utf-8')
        except (ValueError, TypeError):
            # ValueError for Python 3, TypeError for Python 2
            raise ValueError(_ERROR_MESSAGE_NOT_BASE64)
def text_base64decode ( data ) : try : return b64decode ( data . encode ( 'utf-8' ) ) . decode ( 'utf-8' ) except ( ValueError , TypeError ) : raise ValueError ( _ERROR_MESSAGE_NOT_BASE64 )
Base64 decode to unicode text.
        
        :param str data: String data to decode to unicode.
        :return: Base64 decoded string.
        :rtype: str