def METHOD_NAME(self):
    cursor = 0
    while self._state[cursor] >= self._lens[cursor] - 1:
        self._state[cursor] = 0
        cursor += 1
        if cursor >= len(self.keys):
            return 1
    self._state[cursor] += 1
    self._step += 1
    return 0