<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_tick(self, index):
 """Get a tick's interval. Args: index (int):
 The index of the tick that you want to fetch. Returns: int, int: Error code and The tick's interval in seconds. A value of 0 means that the tick is disabled. """


        name = self.tick_name(index)
        if name is None:
            return [pack_error(ControllerSubsystem.SENSOR_GRAPH, Error.INVALID_ARRAY_KEY), 0]

        return [Error.NO_ERROR, self.ticks[name]]