code: def test_with_long_target(self):
      callback = LabelSmoothingRegularisation(epsilon=0.4, classes=4)
      state = {torchbearer.TARGET: torch.Tensor([1, 3]).long()}
  
      target = torch.Tensor(
          [[0.1, 0.7, 0.1, 0.1], [0.1, 0.1, 0.1, 0.7]]
      )
  
      callback.on_sample(state)
      self.assertTrue(
          ((state[torchbearer.TARGET] - target).abs() < 0.00001).all()
      )
  
imports: from unittest import TestCase
  import torch
  import torchbearer
  from torchbearer.callbacks import LabelSmoothingRegularisation
label_desc: Use image node_id 1 for calling the TestLabelSmoothingRegularisation obj's underlying member method code with example usage: obj.test_with_long_target() without return types