<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def setaxes(self, *axes):
 """Set axes to constrain rotations."""

        if axes is None:
            self._axes = None
        else:
            self._axes = [unit_vector(axis) for axis in axes]