code: def test_two(self):
      targets = torch.tensor([[0], [1]])
      one_hot_target = convert_to_one_hot(targets, 3)
      self.assertTrue(
          torch.allclose(
              one_hot_target, torch.tensor([[1, 0, 0], [0, 1, 0]])
          )
      )
  
imports: import unittest
  import torch
  from classy_vision.generic.util import convert_to_one_hot
label_desc: Use image node_id 2 for calling the TestUtils obj's underlying member method code with example usage: obj.test_two() without return types