code: def test_get_baseline_value(
      data: np.ndarray, shape: Tuple, expected: Union[float, dict, bool]
  ):
      if "exception" in expected:
          with pytest.raises(expected["exception"]):
              get_baseline_value(
                  value=data["value"],
                  return_shape=shape["return_shape"],
                  arr=data["arr"],
              )
          return
      out = get_baseline_value(
          value=data["value"],
          return_shape=shape["return_shape"],
          arr=data["arr"],
      )
      assert (
          out == pytest.approx(expected["value"], rel=1e-1, abs=1e-1)
          and out.shape == shape["return_shape"]
      ), "Test failed."
  
imports: import pytest
  from pytest_lazyfixture import lazy_fixture
  from quantus.helpers.utils import *
label_desc: Use image node_id 23 for calling a global function with example usage: test_get_baseline_value(data, shape, expected) without return types