code: def main():
      random.seed(64)
      NGEN = 50
      MU = 50
      LAMBDA = 100
      CXPB = 0.7
      MUTPB = 0.2
  
      pop = toolbox.population(n=MU)
      hof = tools.ParetoFront()
      stats = tools.Statistics(lambda ind: ind.fitness.values)
      stats.register("avg", numpy.mean, axis=0)
      stats.register("std", numpy.std, axis=0)
      stats.register("min", numpy.min, axis=0)
      stats.register("max", numpy.max, axis=0)
  
      algorithms.eaMuPlusLambda(
          pop,
          toolbox,
          MU,
          LAMBDA,
          CXPB,
          MUTPB,
          NGEN,
          stats,
          halloffame=hof,
      )
  
      return pop, stats, hof
  
file_path: deap/examples/ga/knapsack.py
imports: import random
  import numpy
  from deap import algorithms
  from deap import base
  from deap import creator
  from deap import tools
label_desc: Use image node_id 4 for calling a global function with example usage: main() and returns: pop,  stats,  hof