def test_area(self): areas = np_box_mask_list_ops.area(self.box_mask_list1) expected_areas = np.array([8.0, 10.0], dtype=float) self.assertAllClose(expected_areas, areas)