Use the levers at the entrance in the room with the serpent floor. You can toggle 3 at a time, which opens up one of the rooms for a period of time. I believe the levers are random to which room it opens. If you become stuck in one of the rooms, there's another lever inside to let yourself out.