does it say there is some issywith indentation?
you can make changes to medical_records to make some entries invalid so you see what your function does and can debug
Read the test feedback. It says to iterate over invalid_records not enumerate(invalid_records).
What is in invalid_records ? Is it dictionary objects?
Change your input data to make it invalid to test and see what errors re generated.
