docstr: input_shape: [1, 1, 4, 4, 4]
  output_shape: [1, 1, 2, 2, 2]
docstr_tok: ["input_shape",":","[","1",",","1",",","4",",","4",",","4","]","output_shape",":","[","1",",","1",",","2",",","2",",","2","]"]
code: def export_maxpool_3d_dilations() -> None:
      """input_shape: [1, 1, 4, 4, 4]
      output_shape: [1, 1, 2, 2, 2]
      """
      node = onnx.helper.make_node(
          "MaxPool",
          inputs=["x"],
          outputs=["y"],
          kernel_shape=[2, 2, 2],
          strides=[1, 1, 1],
          dilations=[2, 2, 2],
      )
      x = np.array(
          [
              [
                  [
                      [
                          [1, 2, 3, 4],
                          [5, 6, 7, 8],
                          [9, 10, 11, 12],
                          [13, 14, 15, 16],
                      ],
                      [
                          [1, 2, 3, 4],
                          [5, 6, 7, 8],
                          [9, 10, 11, 12],
                          [13, 14, 15, 16],
                      ],
                      [
                          [1, 2, 3, 4],
                          [5, 6, 7, 8],
                          [9, 10, 11, 12],
                          [13, 14, 15, 16],
                      ],
                      [
                          [1, 2, 3, 4],
                          [5, 6, 7, 8],
                          [9, 10, 11, 12],
                          [13, 14, 15, 16],
                      ],
                  ]
              ]
          ]
      ).astype(np.float32)
      y = np.array(
          [[[[[11, 12], [15, 16]], [[11, 12], [15, 16]]]]]
      ).astype(np.float32)
  
      expect(
          node,
          inputs=[x],
          outputs=[y],
          name="test_maxpool_3d_dilations",
      )
  
imports: import numpy
  import onnx
  from onnx.backend.test.case.base import Base
  from onnx.backend.test.case.node import expect
  from onnx.reference.ops.op_pool_common import get_output_shape_auto_pad, get_output_shape_explicit_padding, get_pad_shape, pool
label_desc: Use image node_id 16 for calling the MaxPool obj's underlying member method code with example usage: obj.export_maxpool_3d_dilations() without return types