class_docstr: NT-Xent loss for SimCLR Self-Supervised learning approach -
  https://arxiv.org/abs/2002.05709
  
  Args:
      temperature (float): scalar value to scale the loss by.
code: def __init__(
      self,
      temperature: float,
  ) -> None:
      super().__init__()
      set_attributes(self, locals())
  
imports: from typing import List
  import pytorchvideo_trainer.module.distributed_utils
  import torch
  import torch.nn
  import torch.nn.functional
  from pytorchvideo.layers.utils import set_attributes
label_desc: Use image node_id 1 to create a new NtxentLoss object from inherited base classes: nn with example: obj = NtxentLoss(temperature)