The ruling comes despite allegations that the initial conviction was the result of a trial marred by reports of torture and forced confessions.

Last week, a letter from Ali was read out at the 39th session of the UN Human Rights Council in Geneva, detailing some of the abuses that she endured.

“It has been a year and four months I have been away from my child and my family, and have been denied my basic rights inside Isa Prison – suffering from violations even after my unfair trial and detainment,” the letter read.

“I was subjected to torture and verbal abuse. I was beaten and I have bruises on the front of my head to this day. I was not allowed to be seen by a doctor for my injuries,” Ali added.