It is not a fiction, but it is one of the most dangerous practices.
There are many boox about.
Key of Solomon (Clavicula Salomonis), Peter de Abano - Heptameron, Liber Juratus and many others.
I think there could be some better and less dangerous.
See Iamblichus: Theurgia, or the Egyptian Mysteries.