code: def checkBounds(min, max):
      def decorator(func):
          def wrappper(*args, **kargs):
              offspring = func(*args, **kargs)
              for child in offspring:
                  for i in range(len(child)):
                      if child[i] > max:
                          child[i] = max
                      elif child[i] < min:
                          child[i] = min
              return offspring
  
          return wrappper
  
      return decorator
  
file_path: deap/examples/ga/kursawefct.py
imports: import array
  import logging
  import random
  import numpy
  from deap import algorithms
  from deap import base
  from deap import benchmarks
  from deap import creator
  from deap import tools
label_desc: Use image node_id 1 for calling a global function with example usage: checkBounds(min, max) and returns: decorator, wrappper, offspring