What is the function of “the house is like the sun”?

The Marāghah Maqāmah: Literary Triumph, Nostalgia and Refusal of Office