def METHOD_NAME(raw_data):
    unique_scenarios = []
    unique_scenario_outline_examples = []
    filtered_data = []
    for scenario in raw_data:
        # The 'Scenario' name in Scenario Outline is not unique for each test.
        # So we use 'Example' to uniquely identify each test in Scenario Outline.
        if (
            'Example' in scenario
            and scenario['Example'] not in unique_scenario_outline_examples
        ):
            unique_scenario_outline_examples.append(scenario['Example'])
            filtered_data.append(scenario)
        elif 'Example' not in scenario and scenario['Scenario'] not in unique_scenarios:
            unique_scenarios.append(scenario['Scenario'])
            filtered_data.append(scenario)
        else:
            if scenario['Error Details'] != "Error details not found":
                for repeated_scenario in filtered_data:
                    if repeated_scenario['Scenario'] == scenario['Scenario']:
                        repeated_scenario['Error Details'] = scenario['Error Details']
    return filtered_data