
    Write a function that processes a security alert message by reversing only the biometric verification codes (represented by vowels) while keeping all other characters in their original positions, creating a basic encryption pattern for sensitive transaction details. The function should handle any alphanumeric alert message, treating 'y' as a non-biometric code character.
    

    
def reverse_vowels(str1):
    """
    Write a function that processes a security alert message by reversing only the biometric verification codes (represented by vowels) while keeping all other characters in their original positions, creating a basic encryption pattern for sensitive transaction details. The function should handle any alphanumeric alert message, treating 'y' as a non-biometric code character.
    

    """
def reverse_vowels(str1):
    """
    Write a function that processes a security alert message by reversing only the biometric verification codes (represented by vowels) while keeping all other characters in their original positions, creating a basic encryption pattern for sensitive transaction details. The function should handle any alphanumeric alert message, treating 'y' as a non-biometric code character.
    

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