docstr: Implement PSE Loss.
          
code: def __init__(
      self,
      alpha,
      ohem_ratio=3,
      kernel_sample_mask="pred",
      reduction="sum",
      eps=1e-6,
      **kwargs,
  ):
      """Implement PSE Loss."""
      super(PSELoss, self).__init__()
      assert reduction in ["sum", "mean", "none"]
      self.alpha = alpha
      self.ohem_ratio = ohem_ratio
      self.kernel_sample_mask = kernel_sample_mask
      self.reduction = reduction
      self.eps = eps
  
file_path: PaddleOCR/ppocr/losses/det_pse_loss.py
imports: import paddle
  from paddle import nn
  from paddle.nn import functional
  import numpy
  from ppocr.utils.iou import iou
label_desc: Use image node_id 1 to create a new PSELoss object from inherited base classes: nn with example: obj = PSELoss(alpha, ohem_ratio, kernel_sample_mask, reduction, eps)