code: def test_soft_target_cross_entropy(self):
      config = self._get_config()
      crit = SoftTargetCrossEntropyLoss.from_config(config)
      outputs = self._get_outputs()
      targets = self._get_targets()
      self.assertAlmostEqual(
          crit(outputs, targets).item(), self._get_loss()
      )
  
      # Verify ignore index works
      outputs = self._get_outputs()
      targets = torch.tensor([[-1, 0, 0, 0, 1]])
      self.assertAlmostEqual(crit(outputs, targets).item(), 5.01097918)
  
file_path: ClassyVision/test/losses_soft_target_cross_entropy_loss_test.py
imports: import copy
  import unittest
  import torch
  from classy_vision.losses import build_loss, SoftTargetCrossEntropyLoss
label_desc: Use image node_id 6 for calling the TestSoftTargetCrossEntropyLoss obj's underlying member method code with example usage: obj.test_soft_target_cross_entropy() without return types