It is often used as a support, such as a walking stick, or as an instrument of punishment.
It is often used as a support, such as a walking stick. This is not the same thing as the cane used as an instrument of punishment.