code: def trap(individual):
      u = sum(individual)
      k = len(individual)
      if u == k:
          return k
      else:
          return k - 1 - u
  
file_path: deap/deap/benchmarks/binary.py
imports: from functools import wraps
label_desc: Use image node_id 2 for calling a global function with example usage: trap(individual) and returns: k, unknown