code: def export_gridsample() -> None:
      node = onnx.helper.make_node(
          "GridSample",
          inputs=["X", "Grid"],
          outputs=["Y"],
          mode="linear",
          padding_mode="zeros",
          align_corners=0,
      )
      # X shape, [N, C, H, W] - [1, 1, 4, 4]
      X = np.array(
          [
              [
                  [
                      [0.0, 1.0, 2.0, 3.0],
                      [4.0, 5.0, 6.0, 7.0],
                      [8.0, 9.0, 10.0, 11.0],
                      [12.0, 13.0, 14.0, 15.0],
                  ]
              ]
          ],
          dtype=np.float32,
      )
      # Grid shape, [N, H_out, W_out, 2] - [1, 6, 6, 2]
      Grid = np.array(
          [
              [
                  [
                      [-1.0000, -1.0000],
                      [-0.6000, -1.0000],
                      [-0.2000, -1.0000],
                      [0.2000, -1.0000],
                      [0.6000, -1.0000],
                      [1.0000, -1.0000],
                  ],
                  [
                      [-1.0000, -0.6000],
                      [-0.6000, -0.6000],
                      [-0.2000, -0.6000],
                      [0.2000, -0.6000],
                      [0.6000, -0.6000],
                      [1.0000, -0.6000],
                  ],
                  [
                      [-1.0000, -0.2000],
                      [-0.6000, -0.2000],
                      [-0.2000, -0.2000],
                      [0.2000, -0.2000],
                      [0.6000, -0.2000],
                      [1.0000, -0.2000],
                  ],
                  [
                      [-1.0000, 0.2000],
                      [-0.6000, 0.2000],
                      [-0.2000, 0.2000],
                      [0.2000, 0.2000],
                      [0.6000, 0.2000],
                      [1.0000, 0.2000],
                  ],
                  [
                      [-1.0000, 0.6000],
                      [-0.6000, 0.6000],
                      [-0.2000, 0.6000],
                      [0.2000, 0.6000],
                      [0.6000, 0.6000],
                      [1.0000, 0.6000],
                  ],
                  [
                      [-1.0000, 1.0000],
                      [-0.6000, 1.0000],
                      [-0.2000, 1.0000],
                      [0.2000, 1.0000],
                      [0.6000, 1.0000],
                      [1.0000, 1.0000],
                  ],
              ]
          ],
          dtype=np.float32,
      )
      # Y shape, [N, C, H_out, W_out] - [1, 1, 6, 6]
      Y = np.array(
          [
              [
                  [
                      [0.0000, 0.1500, 0.5500, 0.9500, 1.3500, 0.7500],
                      [0.6000, 1.5000, 2.3000, 3.1000, 3.9000, 2.1000],
                      [2.2000, 4.7000, 5.5000, 6.3000, 7.1000, 3.7000],
                      [3.8000, 7.9000, 8.7000, 9.5000, 10.3000, 5.3000],
                      [
                          5.4000,
                          11.1000,
                          11.9000,
                          12.7000,
                          13.5000,
                          6.9000,
                      ],
                      [3.0000, 6.1500, 6.5500, 6.9500, 7.3500, 3.7500],
                  ]
              ]
          ],
          dtype=np.float32,
      )
      expect(
          node, inputs=[X, Grid], outputs=[Y], name="test_gridsample"
      )
  
file_path: onnx/onnx/backend/test/case/node/gridsample.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 GridSample obj's underlying member method code with example usage: obj.export_gridsample() without return types