code: def test_soft_target_cross_entropy_none_reduction(self):
      # reduction mode is "none"
      config = self._get_config()
      config["reduction"] = "none"
  
      crit = SoftTargetCrossEntropyLoss.from_config(config)
  
      outputs = torch.tensor(
          [[1.0, 7.0, 0.0, 0.0, 2.0], [4.0, 2.0, 1.0, 6.0, 0.5]]
      )
      targets = torch.tensor([[1, 0, 0, 0, 1], [0, 1, 0, 1, 0]])
      loss = crit(outputs, targets)
      self.assertEqual(loss.numel(), outputs.size(0))
  
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 7 for calling the TestSoftTargetCrossEntropyLoss obj's underlying member method code with example usage: obj.test_soft_target_cross_entropy_none_reduction() without return types