AttributeError: 'list' object has no attribute 'items'

While running the code from the data preparation part using a different dataset of Q/A type I am getting this AttributeError.
Anyone knows how to solve it?
Dataset- LDJnr/Capybara at main
Thank you.