idiom
make an example of someone
惩罚某人以警告他人
Meaning
to punish someone to warn others
Example
The boss **made an example of** the dishonest employee.
老板以惩罚不诚实的员工来警告其他人。