def boxes_intersect(box1, box2):
xmin1, xmax1, ymin1, ymax1 = box1<EOL>xmin2, xmax2, ymin2, ymax2 = box2<EOL>if interval_intersection_width(xmin1, xmax1, xmin2, xmax2) andinterval_intersection_width(ymin1, ymax1, ymin2, ymax2):<EOL><INDENT>return True<EOL><DEDENT>else:<EOL><INDENT>return False<EOL><DEDENT>
Determines if two rectangles, each input as a tuple
        (xmin, xmax, ymin, ymax), intersect.