This looks like a prison caning scene, perhaps, with the institution’s supervising medical officer standing official witness that the severe punishment posed no threat to the inmate’s physical health:
"...the girls are prepared in the reformatory’s punishment room, naked, lying on their backs on special benches, bound with their legs spread above their heads, shamefully showing the two holes usually hidden..."