code: def testAgainstTranspose(self):
      self.compareToTranspose(
          3, 2, 3, 1, 2, "NHWC", dtypes.float32, False
      )
      self.compareToTranspose(
          1, 2, 3, 2, 2, "NHWC", dtypes.float32, False
      )
      self.compareToTranspose(
          1, 2, 3, 2, 3, "NHWC", dtypes.float32, False
      )
  
      self.compareToTranspose(
          3, 2, 3, 1, 2, "NHWC", dtypes.qint8, False
      )
      self.compareToTranspose(
          1, 2, 3, 2, 2, "NHWC", dtypes.qint8, False
      )
      self.compareToTranspose(
          1, 2, 3, 2, 3, "NHWC", dtypes.qint8, False
      )
  
      if not test.is_gpu_available():
          tf_logging.info("skipping gpu tests since gpu not available")
          return
  
      self.compareToTranspose(
          3, 2, 3, 1, 2, "NHWC", dtypes.float32, True
      )
      self.compareToTranspose(
          3, 2, 3, 2, 2, "NHWC", dtypes.float32, True
      )
      self.compareToTranspose(
          3, 2, 3, 1, 2, "NCHW", dtypes.float32, True
      )
      self.compareToTranspose(
          3, 2, 3, 2, 3, "NCHW", dtypes.float32, True
      )
      self.compareToTranspose(
          5, 7, 11, 3, 2, "NCHW", dtypes.float32, True
      )
  
      self.compareToTranspose(
          3, 2, 3, 4, 2, "NCHW_VECT_C", dtypes.qint8, True
      )
      self.compareToTranspose(
          3, 2, 3, 8, 3, "NCHW_VECT_C", dtypes.qint8, True
      )
      self.compareToTranspose(
          5, 7, 11, 12, 2, "NCHW_VECT_C", dtypes.qint8, True
      )
  
imports: import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_array_ops
  from tensorflow.python.ops import gradient_checker_v2
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
label_desc: Use image node_id 22 for calling the SpaceToDepthTest obj's underlying member method code with example usage: obj.testAgainstTranspose() without return types