
    Design a function for a personalized learning system that rearranges the vowel sounds in a student's written response while keeping consonants in place, helping speech therapists analyze pronunciation patterns. The function should only modify standard vowels (a, e, i, o, u) within the text, maintaining all other characters in their original positions.
    

    
def reverse_vowels(str1):
    """
    Design a function for a personalized learning system that rearranges the vowel sounds in a student's written response while keeping consonants in place, helping speech therapists analyze pronunciation patterns. The function should only modify standard vowels (a, e, i, o, u) within the text, maintaining all other characters in their original positions.
    

    """
def reverse_vowels(str1):
    """
    Design a function for a personalized learning system that rearranges the vowel sounds in a student's written response while keeping consonants in place, helping speech therapists analyze pronunciation patterns. The function should only modify standard vowels (a, e, i, o, u) within the text, maintaining all other characters in their original positions.
    

    """
    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