def METHOD_NAME(self):
    with mock.patch("spateo.segmentation.label.utils.safe_erode") as safe_erode:
        safe_erode.return_value = np.random.random((3, 3))
        adata = create_random_adata(["unspliced_scores", "unspliced_mask"], (3, 3))
        k = mock.MagicMock()
        square = mock.MagicMock()
        min_area = mock.MagicMock()
        n_iter = mock.MagicMock()
        float_k = mock.MagicMock()
        float_threshold = mock.MagicMock()
        label.find_peaks_with_erosion(adata, "unspliced", k, square, min_area, n_iter, float_k, float_threshold)
        np.testing.assert_array_equal(adata.layers["unspliced_markers"], safe_erode.return_value)
        safe_erode.assert_called_once_with(mock.ANY, k, square, min_area, n_iter, float_k, float_threshold)
        np.testing.assert_array_equal(adata.layers["unspliced_scores"], safe_erode.call_args[0][0])