baby.segmentation.mask_containment

baby.segmentation.mask_containment(a, b)

Max of intersection over a or over b