Toddler put in 'time out' cage for hours