code: def test_baseline_replacement_by_blur(
      data: np.ndarray, params: dict, expected: Union[float, dict, bool]
  ):
      if "exception" in expected:
          with pytest.raises(expected["exception"]):
              out = baseline_replacement_by_blur(
                  arr=data,
                  indices=params["indices"],
                  indexed_axes=params["indexed_axes"],
                  blur_kernel_size=params["blur_kernel_size"],
              )
          return
  
      out = baseline_replacement_by_blur(
          arr=data,
          indices=params["indices"],
          indexed_axes=params["indexed_axes"],
          blur_kernel_size=params["blur_kernel_size"],
      )
  
      indices = utils.expand_indices(
          data, params["indices"], params["indexed_axes"]
      )
      patch_mask = np.zeros(data.shape, dtype=bool)
      patch_mask[indices] = True
      assert out.shape == data.shape, "Test failed."
      assert np.all(out[patch_mask] != data[patch_mask]), "Test failed."
      assert np.all(
          out[~patch_mask] == data[~patch_mask]
      ), "Test failed."
  
imports: import pytest
  from pytest_lazyfixture import lazy_fixture
  from quantus.helpers import utils
  from quantus.functions.perturb_func import *
label_desc: Use image node_id 14 for calling a global function with example usage: test_baseline_replacement_by_blur(data, params, expected) without return types