code: def testDepthToSpaceTranspose(self, dtype):
      x = np.arange(20 * 5 * 8 * 7, dtype=dtype).reshape([20, 5, 8, 7])
      block_size = 2
      for crops_dtype in [dtypes.int64, dtypes.int32]:
          crops = array_ops.zeros((2, 2), dtype=crops_dtype)
          y1 = self.batch_to_space(x, crops, block_size=block_size)
          y2 = array_ops.transpose(
              array_ops.depth_to_space(
                  array_ops.transpose(x, [3, 1, 2, 0]),
                  block_size=block_size,
              ),
              [3, 1, 2, 0],
          )
          with self.cached_session():
              self.assertAllEqual(y1, y2)
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  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
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the BatchToSpaceDepthToSpace obj's underlying member method code with example usage: obj.testDepthToSpaceTranspose(dtype) without return types