“The teacher took him to task when he forgot his homework twice in a row.” 「連続で宿題を忘れたので先生は彼を叱った。」

誰かを「take to task」するということは、悪いことしたのを責める、叱るということです。その人がしたことをforを使って示せます:「彼が汚れた服を床に置いておいたことを叱った。」

To take someone to task is to criticize or scold them for doing something wrong. You can add “for” to show what it was the person did wrong: “She took him to task for leaving his dirty laundry on the floor.”