code: def export() -> None:
      b, c, h, w = shape = (2, 2, 6, 6)
      blocksize = 2
      node = onnx.helper.make_node(
          "SpaceToDepth",
          inputs=["x"],
          outputs=["y"],
          blocksize=blocksize,
      )
      x = np.random.random_sample(shape).astype(np.float32)
      tmp = np.reshape(
          x,
          [b, c, h // blocksize, blocksize, w // blocksize, blocksize],
      )
      tmp = np.transpose(tmp, [0, 3, 5, 1, 2, 4])
      y = np.reshape(
          tmp, [b, c * (blocksize**2), h // blocksize, w // blocksize]
      )
      expect(node, inputs=[x], outputs=[y], name="test_spacetodepth")
  
file_path: onnx/onnx/backend/test/case/node/spacetodepth.py
imports: import numpy
  import onnx
  from onnx.backend.test.case.base import Base
  from onnx.backend.test.case.node import expect
label_desc: Use image node_id 1 for calling the SpaceToDepth obj's underlying member method code with example usage: obj.export() without return types