code: def test_init(self):
      with self.assertRaises(AssertionError):
          PSEModuleLoss(reduction=1)
      pse_loss = PSEModuleLoss(reduction="sum")
      self.assertIsInstance(pse_loss.loss_text, nn.Module)
      self.assertIsInstance(pse_loss.loss_kernel, nn.Module)
  
file_path: mmocr/tests/test_models/test_textdet/test_module_losses/test_pse_module_loss.py
imports: from unittest import TestCase
  import numpy
  import torch
  import torch.nn
  from mmengine.structures import InstanceData
  from parameterized import parameterized
  from mmocr.models.textdet.module_losses import PSEModuleLoss
  from mmocr.structures import TextDetDataSample
label_desc: Use image node_id 2 for calling the TestPSEModuleLoss obj's underlying member method code with example usage: obj.test_init() without return types