That is exactly what it is, but for the flasher switch when the lights are on.
The smaller tube is what you might call an early form of fiber optics to direct the light where it's needed, and the reason it's made like that is that was the only place they had room for a bulb.