class_docstr: Supervised Contrastive Replay Loss as defined in Eq. 5 of
  https://arxiv.org/pdf/2103.13885.pdf.
  
  Author: Yonglong Tian (yonglong@mit.edu)
  Date: May 07, 2020
  Original GitHub repository: https://github.com/HobbitLong/SupContrast/
  LICENSE: BSD 2-Clause License
code: def __init__(
      self, temperature=0.07, contrast_mode="all", base_temperature=0.07
  ):
      super().__init__()
      self.temperature = temperature
      self.contrast_mode = contrast_mode
      self.base_temperature = base_temperature
  
imports: import copy
  import numpy
  import torch
  import torch.nn.functional
  from torch import nn
  from torch.nn import BCELoss
  from avalanche.training.plugins import SupervisedPlugin
  from avalanche.training.regularization import cross_entropy_with_oh_targets
label_desc: Use image node_id 1 to create a new SCRLoss object from inherited base classes: torch.nn with example: obj = SCRLoss(temperature, contrast_mode, base_temperature)