do duty for

1. This log will do duty for a table.
这段圆木可以用作桌子。

来自《简明英汉词典》

2. She was reprimanded for failing to do her duty.
她因失职而遭到了训斥。

来自《简明英汉词典》