code: def setUpClass(cls):
      ## 1D
      cls.input_layer1 = tl.layers.Input(
          [None, 100, 1], name="input_layer1"
      )
  
      n1 = tl.layers.ZeroPad1d(padding=1)(cls.input_layer1)
      n2 = tl.layers.ZeroPad1d(padding=(2, 3))(cls.input_layer1)
  
      print(n1._info[0].layer)
      print(n2._info[0].layer)
  
      cls.n1_shape = n1.get_shape().as_list()
      cls.n2_shape = n2.get_shape().as_list()
  
      ## 2D
      cls.input_layer2 = tl.layers.Input(
          [None, 100, 100, 3], name="input_layer2"
      )
  
      n0 = tl.layers.PadLayer(
          [[0, 0], [3, 3], [3, 3], [0, 0]], "REFLECT", name="inpad"
      )(cls.input_layer2)
      n3 = tl.layers.ZeroPad2d(padding=2)(cls.input_layer2)
      n4 = tl.layers.ZeroPad2d(padding=(2, 3))(cls.input_layer2)
      n5 = tl.layers.ZeroPad2d(padding=((3, 3), (4, 4)))(
          cls.input_layer2
      )
  
      print(n0._info[0].layer)
      print(n3._info[0].layer)
      print(n4._info[0].layer)
      print(n5._info[0].layer)
  
      cls.n0_shape = n0.get_shape().as_list()
      print(cls.n0_shape)
      cls.n3_shape = n3.get_shape().as_list()
      cls.n4_shape = n4.get_shape().as_list()
      cls.n5_shape = n5.get_shape().as_list()
  
      ## 3D
      cls.input_layer3 = tl.layers.Input(
          [None, 100, 100, 100, 3], name="input_layer3"
      )
  
      n6 = tl.layers.ZeroPad3d(padding=2)(cls.input_layer3)
      n7 = tl.layers.ZeroPad3d(padding=(2, 3, 4))(cls.input_layer3)
      n8 = tl.layers.ZeroPad3d(padding=((3, 3), (4, 4), (5, 5)))(
          cls.input_layer3
      )
  
      print(n6._info[0].layer)
      print(n7._info[0].layer)
      print(n8._info[0].layer)
  
      cls.n6_shape = n6.get_shape().as_list()
      cls.n7_shape = n7.get_shape().as_list()
      cls.n8_shape = n8.get_shape().as_list()
  
file_path: TensorLayer/tests/layers/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