Should be a simple thermal / electronic flasher for turn signal / hazards. Would make them alternate top to bottom. The flasher, of course, would have to be on a switch for control.
Looks like two relays in there, but one may be a flasher.
Former owner - 1989 Ford B700 64-pass Blue Bird
(Rest In Peace, Cheese Wagon)