code: def align(boxes, attr, strength="strong"):
      cons = []
      for box in boxes[1:]:
          cons = getattr(boxes[0], attr) == getattr(box, attr)
          boxes[0].solver.addConstraint(cons | strength)
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import itertools
  import kiwisolver
  import logging
  import numpy
  import warnings
  import matplotlib
label_desc: Use image node_id 10 for calling a global function with example usage: align(boxes, attr, strength) without return types