docs: def truncation_selection(random, population, args):
      """Selects the best individuals from the population.
      
      This function performs truncation selection, which means that only
      the best individuals from the current population are selected. This
      is a completely deterministic selection mechanism.
      
      .. Arguments:
         random -- the random number generator object
         population -- the population of individuals
         args -- a dictionary of keyword arguments
  
      Optional keyword arguments in args:
      
      - *num_selected* -- the number of individuals to be selected 
        (default len(population))
      
      """
      num_selected = args.setdefault('num_selected', len(population))
      population.sort(reverse=True)
      return population[:num_selected]