<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def bump(self, level='patch', label=None):
 """ Bump version following semantic versioning rules. """

        bump = self._bump_pre if level == 'pre' else self._bump
        bump(level, label)