code: def test_filter_compatible_patch_sizes(
      data: np.ndarray, expected: Union[float, dict, bool]
  ):
      out = filter_compatible_patch_sizes(
          perturb_patch_sizes=data["perturb_patch_sizes"],
          img_size=data["img_size"],
      )
      assert out == expected, "Test failed."
  
imports: import pytest
  from pytest_lazyfixture import lazy_fixture
  from quantus.helpers.utils import *
label_desc: Use image node_id 25 for calling a global function with example usage: test_filter_compatible_patch_sizes(data, expected) without return types