code: def is_valid_requeue_limit(requeue_limit):
      
      if not isinstance(requeue_limit, (int, long)):
          return False
  
      if requeue_limit <= -2:
          return False
  
      return True
docs: Checks if the given requeue limit is valid.
      A valid requeue limit is always greater than
      or equal to -1.