code: def bce_loss(self, pred, gt, m):
      l = F.binary_cross_entropy(pred, gt, weight=m, reduction="sum")
      loss = l / (m.sum() + self.eps)
      return loss
  
file_path: EasyOCR/easyocr/DBNet/decoders/pss_loss.py
imports: import torch
  import torch.nn
  import torch.nn.functional
label_desc: Use image node_id 7 for calling the PSS_Loss obj's underlying member method code with example usage: obj.bce_loss(pred, gt, m) and returns: loss