
    Design a text preprocessing function for the student feedback analysis system that rearranges only the vowel positions in student comments while keeping consonants in place, to help normalize text patterns for dropout risk assessment. The function should maintain the original feedback structure and word boundaries while only swapping vowel characters (excluding 'y') in reverse order.
    

    
def reverse_vowels(str1):
    """
    Design a text preprocessing function for the student feedback analysis system that rearranges only the vowel positions in student comments while keeping consonants in place, to help normalize text patterns for dropout risk assessment. The function should maintain the original feedback structure and word boundaries while only swapping vowel characters (excluding 'y') in reverse order.
    

    """
def reverse_vowels(str1):
    """
    Design a text preprocessing function for the student feedback analysis system that rearranges only the vowel positions in student comments while keeping consonants in place, to help normalize text patterns for dropout risk assessment. The function should maintain the original feedback structure and word boundaries while only swapping vowel characters (excluding 'y') in reverse order.
    

    """
    vowels = ''
    for char in str1:
        if char in 'aeiouAEIOU':
            vowels += char
    result_string = ''
    for char in str1:
        if char in 'aeiouAEIOU':
            result_string += vowels[-1]
            vowels = vowels[:-1]
        else:
            result_string += char
    return result_string