code: def test_result(self, y_pred_data, expected_val):
      loss = SoftclDiceLoss()
      loss_dice = SoftDiceclDiceLoss()
      result = loss(**y_pred_data)
      result_dice = loss_dice(**y_pred_data)
      np.testing.assert_allclose(
          result.detach().cpu().numpy(),
          expected_val,
          atol=1e-4,
          rtol=1e-4,
      )
      np.testing.assert_allclose(
          result_dice.detach().cpu().numpy(),
          expected_val,
          atol=1e-4,
          rtol=1e-4,
      )
  
file_path: MONAI/tests/test_cldice_loss.py
imports: from __future__ import annotations
  import unittest
  import numpy
  import torch
  from parameterized import parameterized
  from monai.losses import SoftclDiceLoss, SoftDiceclDiceLoss
label_desc: Use image node_id 1 for calling the TestclDiceLoss obj's underlying member method code with example usage: obj.test_result(y_pred_data, expected_val) without return types