Two-year-old punished in dryer