code: def test_ill_opts(self):
      with self.assertRaisesRegex(ValueError, ""):
          MultiScaleLoss(loss=dice_loss, kernel="none")
      with self.assertRaisesRegex(ValueError, ""):
          MultiScaleLoss(loss=dice_loss, scales=[-1])(
              torch.ones((1, 1, 3), device=device),
              torch.ones((1, 1, 3), device=device),
          )
      with self.assertRaisesRegex(ValueError, ""):
          MultiScaleLoss(loss=dice_loss, scales=[-1], reduction="none")(
              torch.ones((1, 1, 3), device=device),
              torch.ones((1, 1, 3), device=device),
          )
  
file_path: MONAI/tests/test_multi_scale.py
imports: from __future__ import annotations
  import unittest
  import numpy
  import torch
  from parameterized import parameterized
  from monai.losses import DiceLoss
  from monai.losses.multi_scale import MultiScaleLoss
  from tests.utils import test_script_save
label_desc: Use image node_id 2 for calling the TestMultiScale obj's underlying member method code with example usage: obj.test_ill_opts() without return types