code: def __init__(self, reduction="mean"):
      super(ContrastiveLoss, self).__init__()
      self.reduction = reduction
  
file_path: SlowFast/slowfast/models/losses.py
imports: from functools import partial
  import torch
  import torch.nn
  from pytorchvideo.losses.soft_target_cross_entropy import SoftTargetCrossEntropyLoss
label_desc: Use image node_id 1 to create a new ContrastiveLoss object from inherited base classes: nn with example: obj = ContrastiveLoss(reduction)