code: def _testOne(self, inputs, block_size, outputs, dtype=dtypes.float32):
      input_nhwc = math_ops.cast(inputs, dtype)
      # test NHWC (default)
      x_tf = array_ops.space_to_depth(input_nhwc, block_size)
      self.assertAllEqual(self.evaluate(x_tf), outputs)
  
      if test_util.is_gpu_available():
          with test_util.force_gpu():
              # test NCHW on GPU
              input_nchw = test_util.NHWCToNCHW(input_nhwc)
              output_nchw = array_ops.space_to_depth(
                  input_nchw, block_size, data_format="NCHW"
              )
              output_nhwc = test_util.NCHWToNHWC(output_nchw)
              self.assertAllEqual(self.evaluate(output_nhwc), outputs)
  
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 1 for calling the SpaceToDepthTest obj's underlying member method code with example usage: obj._testOne(inputs, block_size, outputs, dtype) without return types