code: def set_stats(self, pos_angles, neg_pairs):
      if self.collect_stats:
          with torch.no_grad():
              neg_angles = torch.acos(neg_pairs)
              self.avg_pos_angle = np.degrees(
                  torch.mean(pos_angles).item()
              )
              self.avg_neg_angle = np.degrees(
                  torch.mean(neg_angles).item()
              )
  
file_path: pytorch-metric-learning/src/pytorch_metric_learning/losses/tuplet_margin_loss.py
imports: import numpy
  import torch
  from ..distances import CosineSimilarity
  from ..utils import common_functions
  from ..utils import loss_and_miner_utils
  from .generic_pair_loss import GenericPairLoss
label_desc: Use image node_id 4 for calling the TupletMarginLoss obj's underlying member method code with example usage: obj.set_stats(pos_angles, neg_pairs) without return types