Here in Germany, shunting locos have white headlights switched on at both ends during shunting operations. I'm not sure about the other countries myself.
And to go a bit further, should we change the lights each time we change ends (talking of locomotive light engine here, not DMU/EMU) ?