Those lanterns are used to guide trains through work zones. If you see a yellow lantern, it means there is MoW work or workers ahead. If you see a red lantern, it means do not proceed. If you see a green lantern, it indicates the train has exited the work zone and can resume normal speed.
________________________________________
"Please stand clear of the closing doors. Next stop, uh... Franklin... naw, that's not it. Well, let's go."