Explain Section 394 in Chapter 17 about 'Voluntarily causing hurt in committing robbery.'
Section 394 deals with situations where a person, in committing or attempting to commit robbery, voluntarily causes hurt. In such cases, the offender and any other person jointly involved in the robbery attempt shall be punished with imprisonment for life or with rigorous imprisonment for a term that may extend to ten years, along with a fine.