Write a Python script to parse, clean, and transform a large streaming dataset before loading it into a data warehouse.
Implement transform_stream(lines), which accepts a list of CSV line strings and returns a list of cleaned record dictionaries. Skip blank lines, the header user_id,event_time,amount, malformed rows, missing fields, negative amounts, and amounts with more than two decimal places. Strip whitespace, lowercase user_id, preserve the cleaned event_time, and convert valid amounts to integer cents. Use only the Python standard library.
Return records in input order, each shaped as {"user_id": str, "event_time": str, "amount": int}.
0 <= len(lines) <= 10^6def transform_stream(lines):