class_docstr: common layer unittest 
class_docstr_tok: ["common","layer","unittest"]
docstr: test tdnn
docstr_tok: ["test","tdnn"]
code: def test_tdnn(self):
      """test tdnn"""
      # A 3D Tensor [batch, in_width, in_channels]
      inputs = tf.random_uniform(
          shape=[2, 5, 3], dtype=tf.float32, maxval=1.0
      )
      in_dim = inputs.get_shape().as_list()[2]
      out_dim = 4
      context = [-2, -1, 0, 1, 2]
      output = cl.tdnn(
          inputs,
          "test_tdnn0",
          in_dim,
          context,
          out_dim,
          method="splice_layer",
      )
      out_shape = [2, 5, 4]
      self.assertAllEqual(tf.shape(output), out_shape)
  
      context = 2
      # output = cl.tdnn(inputs, 'test_tdnn1', in_dim, context, out_dim, method='splice_op')
      # self.assertAllEqual(tf.shape(output), out_shape)
  
      output = cl.tdnn(
          inputs,
          "test_tdnn2",
          in_dim,
          context,
          out_dim,
          method="conv1d",
      )
      self.assertAllEqual(tf.shape(output), out_shape)
  
file_path: delta/delta/layers/common_layers_test.py
imports: import delta.compat
  from absl import logging
  import common_layers
label_desc: Use image node_id 2 for calling the LossUtilTest obj's underlying member method code with example usage: obj.test_tdnn() without return types