code: def test_create_patch_slice(params: dict, expected: Any):
      if "exception" in expected:
          with pytest.raises(expected["exception"]):
              out = create_patch_slice(**params)
          return
  
      out = create_patch_slice(**params)
  
      assert np.all(
          out_slice == expected_slice
          for out_slice, expected_slice in zip(out, expected["value"])
      ), f"Slices not equal. {out_slice} != {expected_slice}"
  
imports: import pytest
  from pytest_lazyfixture import lazy_fixture
  from quantus.helpers.utils import *
label_desc: Use image node_id 33 for calling a global function with example usage: test_create_patch_slice(params, expected) without return types