I'd guess the top one is a "parking light" that clips onto a window frame and would plug into an accessory socket as part of the install. Would be aftermarket or dealer option I'd have thought.
The bottom one looks like said accessory socket, with a couple of switches one of which presumably turns the light on and off. Not sure what the other switch would be for though.
yes you are correct i'm not sure what the part in the bottom picture is but the top picture is of a parking light that needed to be fixed to the door window at night for obvious reasons. they were ok as long as you had a good battery, otherwise you would get up in the morning with a flat one. what a lot of people used to use in the 60's was a builders lantern that would be on the road by the car (filled with parrafin.) hope this clears it up for you.