code: def cxSet(ind1, ind2):
      """Apply a crossover operation on input sets. The first child is the
      intersection of the two sets, the second child is the difference of the
      two sets.
      """
      temp = set(ind1)  # Used in order to keep type
      ind1 &= ind2  # Intersection (inplace)
      ind2 ^= temp  # Symmetric Difference (inplace)
      return ind1, ind2
  
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 2 for calling a global function with example usage: cxSet(ind1, ind2) and returns: ind1,  ind2