If the light is on in a room, it is preferable to hold up a baby in the area of the switch, who will play/shut off the light, over asking a shabbos goy.