idiom
take someone to task
严厉批评某人因为他们做错了某事
Meaning
to strongly criticize someone for something they did wrong
Example
The teacher **took him to task** for cheating on the exam.
老师因他在考试中作弊而严厉批评了他。