Tales from Thousand and One Nights, I Dream of Jeannie or Aladdin and the Magic Lamp. Character from oriental fairy tales: Locked in a bottle or lamp for punishment, the genie must satisfy three wishes for everyone who frees him. Metaphor for self-inflicted danger.