code: def cxExponential(x, y, cr):
      size = len(x)
      index = random.randrange(size)
      # Loop on the indices index -> end, then on 0 -> index
      for i in chain(range(index, size), range(0, index)):
          x[i] = y[i]
          if random.random() < cr:
              break
      return x
  
file_path: deap/examples/de/sphere.py
imports: import random
  import array
  import numpy
  from itertools import chain
  from deap import base
  from deap import benchmarks
  from deap import creator
  from deap import tools
label_desc: Use image node_id 3 for calling a global function with example usage: cxExponential(x, y, cr) and returns: x