how to learn writ of mandamus