code: def test_onehot(self):
      input = tl.layers.Input([32], dtype=tf.int32)
      onehot = tl.layers.OneHot(
          depth=8, on_value=1, off_value=0, axis=-1
      )
      print(onehot)
      tensor = tl.layers.OneHot(depth=8)(input)
      self.assertEqual(tensor.get_shape().as_list(), [32, 8])
      model = tl.models.Model(inputs=input, outputs=tensor)
  
file_path: TensorLayer/tests/layers/test_layers_embedding.py
imports: import os
  import unittest
  import numpy
  import tensorflow
  import tensorlayer
  from tests.utils import CustomTestCase
label_desc: Use image node_id 3 for calling the Layer_Embed_Test obj's underlying member method code with example usage: obj.test_onehot() without return types