Nitinol is the name of a so-called shape memory alloy.
These are able to return to a previously stored shape when heated. The form to which it jumps back can be saved in almost any way beforehand. This is also called “training”. When “cold” Nitinol is easily deformed. As soon as it is exposed to a defined temperature, it immediately returns to its stored form.