code: def match_top_margins(boxes, levels=1):
      box0 = boxes[0]
      top0 = box0
      for n in range(levels):
          top0 = top0.parent
      for box in boxes[1:]:
          topb = box
          for n in range(levels):
              topb = topb.parent
          c = box0.top - top0.top == box.top - topb.top
          box0.solver.addConstraint(c | "strong")
  
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 11 for calling a global function with example usage: match_top_margins(boxes, levels) without return types