On the People S 200, S 125 and a few other models, there is this part:
SKU: 3860A-LCD3-E02 CONTROL ASSY UNIT LIGHTING.
You can see it at
http://www.stadiumyamaha.com/pages/parts/viewbybrand/default.aspx by selecting 2007 People S 200, and selecting the Wire Harness page.
This headlight controller has 3 inputs: hi-beam select (from the switch by the left handgrip), low-beam select (same switch), and ignition pulse. Its function is to control the power to the high and low beam headlight filaments. It senses engine speed based on the frequency of ignition pulses, and has three power states: off, dim, and full. When the engine is at idle, the headlights are in the dim state. Above idle, the lights go to the full state. In addition, this assembly switches between low-beam and high-beam as you flick the switch. I think the dim-at-idle behavior is designed to minimize the electrical load when the bike is at idle, when the alternator produces little electricity.
This unit is not a simple relay, although one of its functions is to act as a solid-state relay, energizing the selected beam (low/high).