code: def test_with_cuda(self):
      loss = SoftclDiceLoss()
      loss_dice = SoftDiceclDiceLoss()
      i = torch.ones((100, 3, 256, 256))
      j = torch.ones((100, 3, 256, 256))
      if torch.cuda.is_available():
          i = i.cuda()
          j = j.cuda()
      output = loss(i, j)
      output_dice = loss_dice(i, j)
      np.testing.assert_allclose(
          output.detach().cpu().numpy(), 0.0, atol=1e-4, rtol=1e-4
      )
      np.testing.assert_allclose(
          output_dice.detach().cpu().numpy(), 0.0, 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 2 for calling the TestclDiceLoss obj's underlying member method code with example usage: obj.test_with_cuda() without return types