code: def calculate_loss(self, curr_batch):
      data, labels = curr_batch
      embeddings = self.compute_embeddings(data)
      indices_tuple = self.maybe_mine_embeddings(embeddings, labels)
      self.losses["metric_loss"] = self.maybe_get_metric_loss(
          embeddings, labels, indices_tuple
      )
  
imports: from .base_trainer import BaseTrainer
label_desc: Use image node_id 1 for calling the MetricLossOnly obj's underlying member method code with example usage: obj.calculate_loss(curr_batch) without return types