Implement a simple ETL (Extract-Transform-Load) pipeline for model-ready data preparation.
Given a CSV-like string containing user events with columns: user_id,event_type,value (header included), write a function run_etl(csv_text) that:
event_type == "purchase".value to float and dropping invalid rows.value per user_id.(user_id, total_value) tuples sorted by user_id ascending.Assume small inputs (no external libs), handle extra whitespace, and ignore blank lines. The header row may list the three columns in any order, so locate each column by its header name.