code: def calculate_losses(self, preds, label):
      raise NotImplementedError()
  
imports: import torch
  import torch.nn
  import torch.nn.functional
  from backbones.upsample_head import SimpleUpsampleHead
label_desc: Use image node_id 6 for calling the SimpleDetectionDecoder obj's underlying member method code with example usage: obj.calculate_losses(preds, label) without return types