docs: def handle_durability(parent, **kwargs):
      """
      Handle durability requirements passed inside options
      :param parent: The parent bucket import
      :param kwargs: The arguments
      :return: A tuple of `(found, persist_to, replicate_to)`. The first
      element is True if either persistence or replication has been
      found
      """
      persist_to = kwargs.get('persist_to')
      replicate_to = kwargs.get('replicate_to')
  
      if not persist_to and not replicate_to:
          persist_to = parent._dur_persist_to
          replicate_to = parent._dur_replicate_to
  
      if not persist_to and not replicate_to:
          return False, 0, 0
  
      n_replicas = C.lcb_get_num_replicas(parent._lcbh)
      if replicate_to > n_replicas or persist_to > n_replicas+1:
          raise pycbc_exc_args('Durability requirements will never be satisfied')
  
      return True, persist_to, replicate_to