The letter F on the frame of diesel-electrics is required only so that parts can be identified by axle number (starting at 1 in front and increasing toward the rear of the locomotive), right or left side*. It is not required there for the purpose of giving hand or lantern signals for movement.
For purposes of passing signals, the Engineer sits on the right side of the locomotive, and that is how the determination is made to signal forward or reverse movement from the ground. I don't know how railroads like Burlington and Norfolk & Western, both of which had large numbers of locomotives with dual controls, handled it if the Engineer used the control stand on the official left side of the locomotive. Big Jim, can you help on this?
New York Central SW7's had one control stand and the long hood was the designated front. In yard operations and industrial switching, End-cab locomotives like the SW7 frequently have to be operated with the cab leading part of the time. For hand and lantern signals at those times, Trainmen and Switchmen signal "back up" when they want the engine to move in the direction of the cab end, whether it is leading or trailing. Of course, on a single control SW7, the Engineer is running the engine from the left side when operating point to point with the cab leading. Normal operation puts the Engineer on the right side looking toward the front of the locomotive, so an SW7 is running forward when the long hood is leading.
* Examples: Number 2 traction motor suspension bearing; left rear step well; right rear cab door; R3 wheel (right wheel on number 3 axle); L2 roller bearing cap; L3 lower gear case cover.