A man is walking alongside a train as it is parked on the tracks.