code: def test_ill_shape(self):
      loss = TverskyLoss()
      with self.assertRaisesRegex(AssertionError, ""):
          loss.forward(torch.ones((2, 2, 3)), torch.ones((4, 5, 6)))
      chn_input = torch.ones((1, 1, 3))
      chn_target = torch.ones((1, 1, 3))
      with self.assertRaisesRegex(ValueError, ""):
          TverskyLoss(reduction="unknown")(chn_input, chn_target)
      with self.assertRaisesRegex(ValueError, ""):
          TverskyLoss(reduction=None)(chn_input, chn_target)
  
file_path: MONAI/tests/test_tversky_loss.py
imports: from __future__ import annotations
  import unittest
  import numpy
  import torch
  from parameterized import parameterized
  from monai.losses import TverskyLoss
  from tests.utils import test_script_save
label_desc: Use image node_id 2 for calling the TestTverskyLoss obj's underlying member method code with example usage: obj.test_ill_shape() without return types