The transformative trains are the first in the UK that can use diesel or battery power on sections of railway track where there are no overhead wires.