What was Mae West sent to the workhouse for in 1926?

Question
What was Mae West sent to the workhouse for in 1926?
Answer
Writing starring in play called sex