How do the cages work (or do they work at all)?

I built a couple of cages but I have no idea how to (if it’s even possible) store thralls inside. Anybody got any pointers on this?

I do not think they work. I think they are just decorative.