A gauge changer is a device which forces the gauge adjustment in the wheels.
A train (or an individual car) can be pushed halfway across the gauge-changer, uncoupled, and then (once far enough across) coupled to the new locomotive and pulled the rest of the way.