code: def __init__(self, base_loss_fct):
      super().__init__()
      self.base_loss_fct = base_loss_fct
      self.reduction = self.base_loss_fct.reduction
  
imports: from small_text.integrations.pytorch.exceptions import PytorchNotFoundError
label_desc: Use image node_id 1 to create a new _LossAdapter2DTo1D object from inherited base classes: _Loss with example: obj = _LossAdapter2DTo1D(base_loss_fct)