Sentencing, Judge Norman Wright told the pair: "This was a flagrant abuse of power and a gross breach of trust."
He added: "The room has been described as a cell but it seems to me it was akin to a prison cell from a third world country, not the home of an 11- or 12-year-old living in this century in this country."
More top news
Heavy rain Saturday night - fresher, brighter and more showery on Sunday
Heavy rain due on Saturday night - windy
The result of the Labour leadership ballot is to be announced later as party members gather for the annual conference in Liverpool.