code: def main(seed=0):
      random.seed(seed)
  
      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)
  
      algorithms.eaSimple(
          pop,
          toolbox,
          cxpb=0.5,
          mutpb=0.2,
          ngen=100,
          stats=stats,
          halloffame=hof,
          verbose=True,
      )
  
      return pop, stats, hof
  
file_path: deap/examples/ga/nqueens.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 2 for calling a global function with example usage: main(seed) and returns: pop,  stats,  hof