code: def export_resize_upsample_scales_cubic_align_corners() -> None:
      node = onnx.helper.make_node(
          "Resize",
          inputs=["X", "", "scales"],
          outputs=["Y"],
          mode="cubic",
          coordinate_transformation_mode="align_corners",
      )
  
      data = np.array(
          [
              [
                  [
                      [1, 2, 3, 4],
                      [5, 6, 7, 8],
                      [9, 10, 11, 12],
                      [13, 14, 15, 16],
                  ]
              ]
          ],
          dtype=np.float32,
      )
  
      scales = np.array([1.0, 1.0, 2.0, 2.0], dtype=np.float32)
  
      # [[[[ 1.          1.34110787  1.80029155  2.32944606  2.67055394
      #      3.19970845  3.65889213  4.        ]
      #    [ 2.36443149  2.70553936  3.16472303  3.69387755  4.03498542
      #      4.56413994  5.02332362  5.36443149]
      #    [ 4.20116618  4.54227405  5.00145773  5.53061224  5.87172012
      #      6.40087464  6.86005831  7.20116618]
      #    [ 6.31778426  6.65889213  7.1180758   7.64723032  7.98833819
      #      8.51749271  8.97667638  9.31778426]
      #    [ 7.68221574  8.02332362  8.48250729  9.01166181  9.35276968
      #      9.8819242  10.34110787 10.68221574]
      #    [ 9.79883382 10.13994169 10.59912536 11.12827988 11.46938776
      #     11.99854227 12.45772595 12.79883382]
      #    [11.63556851 11.97667638 12.43586006 12.96501458 13.30612245
      #     13.83527697 14.29446064 14.63556851]
      #    [13.         13.34110787 13.80029155 14.32944606 14.67055394
      #     15.19970845 15.65889213 16.        ]]]]
      output = interpolate_nd(
          data,
          lambda x, _: cubic_coeffs(x),
          scale_factors=scales,
          coordinate_transformation_mode="align_corners",
      ).astype(np.float32)
  
      expect(
          node,
          inputs=[data, scales],
          outputs=[output],
          name="test_resize_upsample_scales_cubic_align_corners",
      )
  
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_resize import _cubic_coeffs
  from onnx.reference.ops.op_resize import _cubic_coeffs_antialias
  from onnx.reference.ops.op_resize import _interpolate_nd
  from onnx.reference.ops.op_resize import _linear_coeffs
  from onnx.reference.ops.op_resize import _linear_coeffs_antialias
  from onnx.reference.ops.op_resize import _nearest_coeffs
label_desc: Use image node_id 10 for calling the Resize obj's underlying member method code with example usage: obj.export_resize_upsample_scales_cubic_align_corners() without return types