As part of QA automation for an Alnylam Amvuttra workflow, a test runner records whether each expected result matches the observed result. Write a function that scans the records and returns the IDs of all failed test cases in their original execution order.
A test case passes when expected equals actual. It fails otherwise.
Implement collect_failed_tests(results).
results, a list of dictionaries. Each dictionary contains three strings: id, expected, and actual.def collect_failed_tests(results):