code: def get_loss(self, pred, gt, mask):
      loss = torch.tensor(0.0)
      for ind in range(pred.size(1)):
          loss += self.criterion(
              pred[:, ind, :, :], gt[:, ind, :, :], mask
          )
      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 11 for calling the PSS_Loss obj's underlying member method code with example usage: obj.get_loss(pred, gt, mask) and returns: loss