Implement the function calculate_trump_score that analyzes a given text string to compute a score based on the repetition of vowels. Specifically, the function must:
Identify groups of repeated vowels within the input text.
Count the extra vowels in each group (beyond the first occurrence of each vowel).
Calculate the Trump score as the average count of extra vowels, rounded to two decimal places.
If there are no groups of repeated vowels, the function should return a score of 0.0.
Input/Output Requirements
Input: The function should accept a single parameter:
text (str): A string containing any characters, including letters, numbers, and punctuation.
Output: The function should return:
A float value that represents the Trump score, formatted to two decimal places.
Implementation
The solution must be written in a file called /app/solution.py. Ensure that the code is properly structured and includes necessary error handling if applicable. Make sure the function adheres to the specified input/output requirements.