code: def test_ill_opts(self):
      with self.assertRaisesRegex(ValueError, ""):
          MaskedDiceLoss(sigmoid=True, softmax=True)
      chn_input = torch.ones((1, 1, 3))
      chn_target = torch.ones((1, 1, 3))
      with self.assertRaisesRegex(ValueError, ""):
          MaskedDiceLoss(reduction="unknown")(chn_input, chn_target)
      with self.assertRaisesRegex(ValueError, ""):
          MaskedDiceLoss(reduction=None)(chn_input, chn_target)
  
file_path: MONAI/tests/test_masked_dice_loss.py
imports: from __future__ import annotations
  import unittest
  import numpy
  import torch
  from parameterized import parameterized
  from monai.losses import MaskedDiceLoss
label_desc: Use image node_id 3 for calling the TestDiceLoss obj's underlying member method code with example usage: obj.test_ill_opts() without return types