code: def setUpClass(cls):
      ## 1D ========================================================================
  
      ## 2D ========================================================================
  
      x_2_input_shape = [None, 100, 100, 3]
      nin_2 = Input(x_2_input_shape)
  
      n6 = tl.layers.Conv2d(
          n_filter=32,
          filter_size=(3, 3),
          strides=(2, 2),
          name="test_conv2d",
      )(nin_2)
  
      n7 = tl.layers.UpSampling2d(
          scale=(2, 2), name="test_UpSampling2d_1"
      )(n6)
  
      n8 = tl.layers.UpSampling2d(scale=3, name="test_UpSampling2d_2")(
          n6
      )
  
      n9 = tl.layers.DownSampling2d(
          scale=(2, 2), name="test_DownSampling2d_1"
      )(n6)
  
      n10 = tl.layers.DownSampling2d(
          scale=5, name="test_DownSampling2d_2"
      )(n6)
  
      cls.n6_shape = n6.get_shape().as_list()
      cls.n7_shape = n7.get_shape().as_list()
      cls.n8_shape = n8.get_shape().as_list()
      cls.n9_shape = n9.get_shape().as_list()
      cls.n10_shape = n10.get_shape().as_list()
  
      print("Printing UpSampling2d")
      print(nin_2._info[0].layer)
      print(n6._info[0].layer)
      print(n7._info[0].layer)
      print(n8._info[0].layer)
      print(n9._info[0].layer)
      print(n10._info[0].layer)
  
file_path: TensorLayer/tests/layers/test_layers_resampling.py
imports: import os
  import sys
  import unittest
  import tensorflow
  import tensorlayer
  from tensorlayer.layers import *
  from tests.utils import CustomTestCase
label_desc: Use image node_id 1 for calling the Layer_Pooling_Test obj's underlying member method code with example usage: obj.setUpClass(cls) without return types