Input (grade 10): She is Asura's master, and was imprisoned by the gods in the depths of a volcano, under constant watch by the Demon God Gandhara.
Output (grade 8): She had been imprisoned by the gods in the depths of a volcano, under constant watch by the Demon God Gandhara.