code: def compute_loss(self):
      if self.mode == "match":
          self.loss = self.compute_loss_match()
      elif self.mode == "label":
          self.loss = self.compute_loss_label()
      else:
          raise NotImplementedError(
              "The mode for the loss is incorrect"
          )
  
imports: import logging
  import torch
  import torch.nn.functional
  from typing import Any
  from torch_points3d.datasets.multiscale_data import MultiScaleBatch
  from torch_points3d.models.base_architectures import BackboneBasedModel
  from torch_points3d.models.base_model import BaseModel
  from torch_points3d.core.common_modules.dense_modules import Conv1D
  from torch_points3d.core.common_modules.base_modules import Seq
label_desc: Use image node_id 5 for calling the FragmentBaseModel obj's underlying member method code with example usage: obj.compute_loss() without return types