code: def main():
      random.seed(64)
  
      pop = toolbox.population(n=300)
      hof = tools.HallOfFame(1)
      stats = tools.Statistics(lambda ind: ind.fitness.values)
      stats.register("avg", numpy.mean)
      stats.register("std", numpy.std)
      stats.register("min", numpy.min)
      stats.register("max", numpy.max)
  
      pop, log = algorithms.eaSimple(
          pop,
          toolbox,
          cxpb=0.5,
          mutpb=0.2,
          ngen=40,
          stats=stats,
          halloffame=hof,
          verbose=True,
      )
  
      return pop, log, hof
  
file_path: deap/examples/ga/onemax_short.py
imports: import array
  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 2 for calling a global function with example usage: main() and returns: pop,  log,  hof