code: def __init__(self, temperature=0.1, **kwargs):
      super().__init__(mat_based_loss=True, **kwargs)
      self.temperature = temperature
      self.add_to_recordable_attributes(
          list_of_names=["temperature"], is_stat=False
      )
  
file_path: pytorch-metric-learning/src/pytorch_metric_learning/losses/supcon_loss.py
imports: from ..distances import CosineSimilarity
  from ..reducers import AvgNonZeroReducer
  from ..utils import common_functions
  from ..utils import loss_and_miner_utils
  from .generic_pair_loss import GenericPairLoss
label_desc: Use image node_id 1 to create a new SupConLoss object from inherited base classes: GenericPairLoss with example: obj = SupConLoss(temperature)