What is the literary function of the black garments?

The Ḥulwān Maqāmah: Recognition and the Turns of Fortune