code: def test_script(self):
      input_param, expected_val = TEST_CASES[0]
      size = [3, 3, 5, 5]
      label = torch.randint(low=0, high=2, size=size)
      label = torch.argmax(label, dim=1, keepdim=True)
      pred = torch.randn(size)
      loss = MaskedLoss(**input_param)
      test_script_save(loss, pred, label)
  
file_path: MONAI/tests/test_masked_loss.py
imports: from __future__ import annotations
  import unittest
  import numpy
  import torch
  from parameterized import parameterized
  from monai.losses.dice import DiceFocalLoss, DiceLoss
  from monai.losses.spatial_mask import MaskedLoss
  from monai.utils import set_determinism
  from tests.utils import test_script_save
label_desc: Use image node_id 5 for calling the TestMaskedLoss obj's underlying member method code with example usage: obj.test_script() without return types