code: 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_BASE64f 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)
docs: Base64 decode to unicode text.
          
          :param str data: String data to decode to unicode.
          :return: Base64 decoded string.
          :rtype: str