def METHOD_NAME(data):
    """
    Convert anything to text decoded text
    When the data is bytes, it's decoded. When it's not of string types
    it's re-formatted into text and returned. Otherwise (it's string)
    it's returned unchanged.
    :param data: data to be transformed into text
    :type data: either bytes or other data that will be returned
                unchanged
    """
    if isinstance(data, bytes):
        return data.decode(ENCODING)
    elif not isinstance(data, string_types):
        if sys.version_info[0] < 3:
            return unicode(data)    # pylint: disable=E0602
        else:
            return str(data)
    return data