Write non_maximum_suppression(boxes, scores, iou_threshold): repeatedly keep the highest-scoring remaining box and suppress every other remaining box whose IoU with it exceeds iou_threshold.
boxes: array-like of shape (N, 4), each [x1, y1, x2, y2] (top-left, bottom-right corners).scores: array-like of shape (N,).iou_threshold: float in [0, 1].[] for empty input and -1 for invalid input: boxes not of shape (N, 4), length mismatch, or threshold outside [0, 1].