code: def test_convert_to_one_hot(self):
      # Test without label smooth.
      num_class = 5
      num_samples = 10
      labels = torch.arange(0, num_samples) % num_class
      one_hot = convert_to_one_hot(labels, num_class)
      self.assertEqual(one_hot.sum(), num_samples)
      label_value = 1.0
      for index in range(num_samples):
          label = labels[index]
  
          self.assertEqual(one_hot[index][label], label_value)
  
      # Test with label smooth.
      labels = torch.arange(0, num_samples) % num_class
      label_smooth = 0.1
      one_hot_smooth = convert_to_one_hot(
          labels, num_class, label_smooth=label_smooth
      )
      self.assertEqual(one_hot_smooth.sum(), num_samples)
      label_value_smooth = 1 - label_smooth + label_smooth / num_class
      for index in range(num_samples):
          label = labels[index]
          self.assertEqual(
              one_hot_smooth[index][label], label_value_smooth
          )
  
imports: import unittest
  from collections import Counter
  from itertools import permutations
  import numpy
  import torch
  from pytorchvideo.data.utils import thwc_to_cthw
  from pytorchvideo.transforms import ApplyTransformToKey, AugMix, create_video_transform, CutMix, MixUp, MixVideo, Normalize, OpSampler, Permute, RandAugment, RandomResizedCrop, RandomShortSideScale, ShortSideScale, UniformCropVideo, UniformTemporalSubsample
  from pytorchvideo.transforms.functional import clip_boxes_to_image, convert_to_one_hot, div_255, horizontal_flip_with_boxes, random_crop_with_boxes, random_short_side_scale_with_boxes, short_side_scale, short_side_scale_with_boxes, uniform_crop, uniform_crop_with_boxes, uniform_temporal_subsample, uniform_temporal_subsample_repeated
  from torchvision.transforms import Compose
  from torchvision.transforms._transforms_video import CenterCropVideo, NormalizeVideo, RandomCropVideo, RandomHorizontalFlipVideo
  from utils import create_dummy_video_frames, create_random_bbox
label_desc: Use image node_id 21 for calling the TestTransforms obj's underlying member method code with example usage: obj.test_convert_to_one_hot() without return types