Sometimes, this literary device is known as “dream allegory.” It was particularly popular in early medieval Europe. Dream visions can take the form of short stories, novels, and even poems.