code: def setUpClass(cls):
      ## 1D
      x = tf.placeholder(tf.float32, (None, 100, 1))
      n = tl.layers.InputLayer(x)
  
      n1 = tl.layers.ZeroPad1d(n, padding=1)
      n2 = tl.layers.ZeroPad1d(n, padding=(2, 3))
  
      n1.print_layers()
      n2.print_layers()
  
      cls.n1_shape = n1.outputs.get_shape().as_list()
      cls.n2_shape = n2.outputs.get_shape().as_list()
  
      ## 2D
      x = tf.placeholder(tf.float32, (None, 100, 100, 3))
      n = tl.layers.InputLayer(x)
  
      n3 = tl.layers.ZeroPad2d(n, padding=2)
      n4 = tl.layers.ZeroPad2d(n, padding=(2, 3))
      n5 = tl.layers.ZeroPad2d(n, padding=((3, 3), (4, 4)))
  
      n3.print_layers()
      n4.print_layers()
      n5.print_layers()
  
      cls.n3_shape = n3.outputs.get_shape().as_list()
      cls.n4_shape = n4.outputs.get_shape().as_list()
      cls.n5_shape = n5.outputs.get_shape().as_list()
  
      ## 3D
      x = tf.placeholder(tf.float32, (None, 100, 100, 100, 3))
      n = tl.layers.InputLayer(x)
  
      n6 = tl.layers.ZeroPad3d(n, padding=2)
      n7 = tl.layers.ZeroPad3d(n, padding=(2, 3, 4))
      n8 = tl.layers.ZeroPad3d(n, padding=((3, 3), (4, 4), (5, 5)))
  
      n6.print_layers()
      n7.print_layers()
      n8.print_layers()
  
      cls.n6_shape = n6.outputs.get_shape().as_list()
      cls.n7_shape = n7.outputs.get_shape().as_list()
      cls.n8_shape = n8.outputs.get_shape().as_list()
  
file_path: TensorLayer/tests/pending/test_layers_padding.py
imports: import os
  import unittest
  import tensorflow
  import tensorlayer
  from tests.utils import CustomTestCase
label_desc: Use image node_id 1 for calling the Layer_Padding_Test obj's underlying member method code with example usage: obj.setUpClass(cls) without return types