code: def test_raise_exception(self, _, args, input_image, expected_error):
      with self.assertRaises(expected_error):
          converter = LabelFilterd(keys="image", **args)
          if (
              isinstance(input_image, torch.Tensor)
              and torch.cuda.is_available()
          ):
              _ = converter({"image": input_image.cuda()})
          else:
              _ = converter({"image": input_image})
  
file_path: MONAI/tests/test_label_filterd.py
imports: from __future__ import annotations
  import unittest
  import torch
  from parameterized import parameterized
  from monai.transforms.post.dictionary import LabelFilterd
  from tests.utils import TEST_NDARRAYS, assert_allclose
label_desc: Use image node_id 2 for calling the TestLabelFilter obj's underlying member method code with example usage: obj.test_raise_exception(_, args, input_image, expected_error) without return types