code: def test_idct(self):
      x = tf.reshape(
          tf.constant(
              [[0.2, 0.5, 0.8], [0.7, 0.4, 0.1], [0.6, 0.9, 0.3]]
          ),
          shape=[1, 3, 3, 1],
      )
      idct_x = transforms.idct(x)
  
      # Calculated by a reference implementation.
      expected = np.reshape(
          np.array(
              [
                  [1.42522291, -0.04099682, 0.09735938],
                  [-0.44310533, -0.39329966, 0.18787686],
                  [0.39594028, -0.49707437, -0.13192325],
              ]
          ),
          newshape=[1, 3, 3, 1],
      )
      self.assertAllClose(idct_x, expected)
  
file_path: neural-structured-learning/research/multi_representation_adversary/multi_representation_adversary/transforms_test.py
imports: from multi_representation_adversary import transforms
  import numpy
  import tensorflow.compat.v2
label_desc: Use image node_id 2 for calling the TransformsTest obj's underlying member method code with example usage: obj.test_idct() without return types