code: def constraint_capacity(routine):
      capacity = 0
      c = 0
      for i in routine:
          if i != 0:
              c += 1
          else:
              capacity = max(capacity, c + 1)
              c = 0
      capacity = max(capacity, c + 1)
      return capacity - max_capacity
  
imports: import numpy
  from scipy import spatial
  import matplotlib.pyplot
  from sko.GA import GA_TSP
label_desc: Use image node_id 2 for calling a global function with example usage: constraint_capacity(routine) and returns: unknown