How does literature reflects on life reality?

Anyhow. Sometimes 100%, sometimes not at all.