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