code: def dice_loss_per_image(logits, labels):
      total_loss = 0
      for i, (_logit, _label) in enumerate(zip(logits, labels)):
          total_loss += dice(_logit, _label)
      return total_loss / len(logits)
  
imports: import torch.nn.functional
  from .utils import *
  from .backbone import *
label_desc: Use image node_id 2 for calling a global function with example usage: dice_loss_per_image(logits, labels) and returns: unknown