code: def _check_times(self, min_times, max_times, step):
          '''
          Make sure that the arguments are valid
  
          :raises: KittyException if not valid
          '''
          kassert.is_int(min_times)
          kassert.is_int(max_times)
          kassert.is_int(step)
          if not((min_times >= 0) and (max_times > 0) and (max_times >= min_times) and (step > 0)):
              raise KittyException('one of the checks failed: min_times(%d)>=0, max_times(%d)>0, max_times>=min_times, step > 0' % (min_times, max_times)f _check_times(self, min_times, max_times, step):
          '''
          Make sure that the arguments are valid
  
          :raises: KittyException if not valid
          '''
          kassert.is_int(min_times)
          kassert.is_int(max_times)
          kassert.is_int(step)
          if not((min_times >= 0) and (max_times > 0) and (max_times >= min_times) and (step > 0)):
              raise KittyException('one of the checks failed: min_times(%d)>=0, max_times(%d)>0, max_times>=min_times, step > 0' % (min_times, max_times))
docs: Make sure that the arguments are valid
  
          :raises: KittyException if not valid