code: def __init__(self, softmax_scale=1, **kwargs):
      super().__init__(**kwargs)
      self.softmax_scale = softmax_scale
      self.add_to_recordable_attributes(
          list_of_names=["softmax_scale"], is_stat=False
      )
  
file_path: pytorch-metric-learning/src/pytorch_metric_learning/losses/nca_loss.py
imports: import torch
  from ..distances import LpDistance
  from ..utils import common_functions
  from ..utils import loss_and_miner_utils
  from .base_metric_loss_function import BaseMetricLossFunction
label_desc: Use image node_id 1 to create a new NCALoss object from inherited base classes: BaseMetricLossFunction with example: obj = NCALoss(softmax_scale)