What is the rhetorical function of the sun-and-cloud image?

The Dimyāṭī Maqāmah: Justice and Boundaries in Companionship