AFAIK, incarcerating people randomly in cells is highly illegal. However, we find in the 2014 CW series "The Flash" that all metahumans they met, were put in prison cells in the used-to-be particle accelerator.
I am not highly experienced with the comics but is there at least an attempt to cover this legally? I mean there are cops (detective West and Thawne) that are aware of the existence of the jail and are totally cool with it, they're like "Oh you're holding people in there without food or water or even a f****ng window, that's cool, Batman gives them to Arkham and they end up back in the street, this is more efficient."
The series doesn't even bother showing human treatment to prisoners, and unless a metahuman is needed for a favor, he remains in a 1m x 1m cell to die.
My TL;DR question is: Is there a legal cover for this "jail" in The Flash universe. And is it a comics thing, or something the series came up with.