code: def test_ill_arg(self):
      with self.assertRaises(ValueError):
          SegResNet(spatial_dims=4)
  
file_path: MONAI/tests/test_segresnet.py
imports: from __future__ import annotations
  import unittest
  import torch
  from parameterized import parameterized
  from monai.networks import eval_mode
  from monai.networks.nets import SegResNet, SegResNetVAE
  from monai.utils import UpsampleMode
  from tests.utils import test_script_save
label_desc: Use image node_id 2 for calling the TestResNet obj's underlying member method code with example usage: obj.test_ill_arg() without return types