<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_interval(self, timer_id, interval):
 """ Set timer interval. Returns 0 if OK, -1 on failure. This method is slow, canceling the timer and adding a new one yield better performance. """

        return lib.ztimerset_set_interval(self._as_parameter_, timer_id, interval)