Prison Act Article 26

In the event of a major extraordinary incident, a prison may, where necessary, request police or other relevant agencies to provide assistance in order to enhance security, custody, and control of inmates.In the event of a natural disaster or incident, inmates may be assigned to do disaster prevention jobs and rescue tasks to ensure the safety of prison facilities and inmates.
中文原文 監獄行刑法第26條
監獄遇有重大特殊情形,為加強安全戒備及受刑人之戒護,必要時得請求警察機關或其他相關機關協助。
遇有天災、事變,為防護監獄設施及受刑人安全時,得由受刑人分任災害防救工作。

English translation for reference only; the Chinese text prevails. Not legal advice.