code: def generation_termination(population, num_generations, num_evaluations, args):
      
      max_generations = args.setdefault('max_generations', 1)
      return num_generations >= max_generations
docs: Return True if the number of generations meets or exceeds a maximum.
      
      This function compares the number of generations with a specified 
      maximum. It returns True if the maximum is met or exceeded.
      
      .. Arguments:
         population -- the population of Individuals
         num_generations -- the number of elapsed generations
         num_evaluations -- the number of candidate solution evaluations
         args -- a dictionary of keyword arguments
      
      Optional keyword arguments in args:
      
      - *max_generations* -- the maximum generations (default 1)