idiom
make an example of someone
他の人に警告するために誰かを罰する
Meaning
to punish someone to warn others
Example
The boss **made an example of** the dishonest employee.
上司は不誠実な従業員を罰して、他の人々に警告を与えました。