from wikipedia...
"In some instances, particularly on branch lines having no turnaround such as a turntable or wye at the terminus point, locomotives ran in reverse with the tender leading the train. In such instances, a headlamp (US) or headcode lamps/discs were placed on the leading end of...