code: def test_ill_args(self):
      with self.assertRaises(ValueError):
          MILModel(
              num_classes=5,
              pretrained=False,
              backbone="resnet50",
              backbone_num_features=2048,
              mil_mode="att_trans_pyramid",
          )
  
file_path: MONAI/tests/test_milmodel.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 MILModel
  from monai.utils.module import optional_import
  from tests.utils import skip_if_downloading_fails, test_script_save
label_desc: Use image node_id 2 for calling the TestMilModel obj's underlying member method code with example usage: obj.test_ill_args() without return types