code: def test_ill_arg(self):
      with self.assertRaises(ValueError):
          # wrong spatial_dims
          EfficientNetBN(model_name="efficientnet-b0", spatial_dims=4)
          # wrong model_name
          EfficientNetBN(model_name="efficientnet-b10", spatial_dims=3)
  
imports: from __future__ import annotations
  import os
  import unittest
  from typing import TYPE_CHECKING
  from unittest import skipUnless
  import torch
  from parameterized import parameterized
  from monai.networks import eval_mode
  from monai.networks.nets import BlockArgs, EfficientNetBN, EfficientNetBNFeatures, drop_connect, get_efficientnet_image_size
  from monai.utils import optional_import
  from tests.utils import skip_if_downloading_fails, skip_if_quick, test_pretrained_networks, test_script_save
label_desc: Use image node_id 6 for calling the TestEFFICIENTNET obj's underlying member method code with example usage: obj.test_ill_arg() without return types