code: def test_filter_swinunetr(self, input_param, key, value):
      with skip_if_downloading_fails():
          with tempfile.TemporaryDirectory() as tempdir:
              file_name = "ssl_pretrained_weights.pth"
              data_spec = testing_data_config(
                  "models", f"{file_name.split('.', 1)[0]}"
              )
              weight_path = os.path.join(tempdir, file_name)
              download_url(
                  data_spec["url"],
                  weight_path,
                  hash_val=data_spec["hash_val"],
                  hash_type=data_spec["hash_type"],
              )
  
              ssl_weight = torch.load(weight_path)["model"]
              net = SwinUNETR(**input_param)
              dst_dict, loaded, not_loaded = copy_model_state(
                  net, ssl_weight, filter_func=filter_swinunetr
              )
              assert_allclose(
                  dst_dict[key][:8],
                  value,
                  atol=1e-4,
                  rtol=1e-4,
                  type_test=False,
              )
              self.assertTrue(
                  len(loaded) == 157 and len(not_loaded) == 2
              )
  
file_path: MONAI/tests/test_swin_unetr.py
imports: from __future__ import annotations
  import os
  import tempfile
  import unittest
  from unittest import skipUnless
  import torch
  from parameterized import parameterized
  from monai.apps import download_url
  from monai.networks import eval_mode
  from monai.networks.nets.swin_unetr import PatchMerging, PatchMergingV2, SwinUNETR, filter_swinunetr
  from monai.networks.utils import copy_model_state
  from monai.utils import optional_import
  from tests.utils import assert_allclose, pytorch_after, skip_if_downloading_fails, skip_if_no_cuda, skip_if_quick, testing_data_config
label_desc: Use image node_id 4 for calling the TestSWINUNETR obj's underlying member method code with example usage: obj.test_filter_swinunetr(input_param, key, value) without return types