code: def dice_loss(self, input, target, mask):
      input = F.sigmoid(input)
  
      input = input.reshape([input.shape[0], -1])
      target = target.reshape([target.shape[0], -1])
      mask = mask.reshape([mask.shape[0], -1])
  
      input = input * mask
      target = target * mask
  
      a = paddle.sum(input * target, 1)
      b = paddle.sum(input * input, 1) + self.eps
      c = paddle.sum(target * target, 1) + self.eps
      d = (2 * a) / (b + c)
      return 1 - d
  
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 3 for calling the PSELoss obj's underlying member method code with example usage: obj.dice_loss(input, target, mask) and returns: unknown