def METHOD_NAME(self) -> None:
    """Check the function for mask to Box2D."""
    mask: NDArrayU8 = np.zeros((10, 10), dtype=np.uint8)
    mask[4:6, 2:8] = 1
    mask[2:8, 4:6] = 1
    box2d = mask_to_box2d(mask)
    gt_box2d = Box2D(x1=2, x2=7, y1=2, y2=7)
    self.assertEqual(box2d, gt_box2d)