code: def export_resize_upsample_scales_cubic_asymmetric() -> None:
      node = onnx.helper.make_node(
          "Resize",
          inputs=["X", "", "scales"],
          outputs=["Y"],
          mode="cubic",
          coordinate_transformation_mode="asymmetric",
      )
  
      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.40625  2.       2.5      3.       3.59375  4.
      #      4.09375]
      #    [ 2.625    3.03125  3.625    4.125    4.625    5.21875  5.625
      #      5.71875]
      #    [ 5.       5.40625  6.       6.5      7.       7.59375  8.
      #      8.09375]
      #    [ 7.       7.40625  8.       8.5      9.       9.59375 10.
      #     10.09375]
      #    [ 9.       9.40625 10.      10.5     11.      11.59375 12.
      #     12.09375]
      #    [11.375   11.78125 12.375   12.875   13.375   13.96875 14.375
      #     14.46875]
      #    [13.      13.40625 14.      14.5     15.      15.59375 16.
      #     16.09375]
      #    [13.375   13.78125 14.375   14.875   15.375   15.96875 16.375
      #     16.46875]]]]
      output = interpolate_nd(
          data,
          lambda x, _: cubic_coeffs(x, A=-0.75),
          scale_factors=scales,
          coordinate_transformation_mode="asymmetric",
      ).astype(np.float32)
  
      expect(
          node,
          inputs=[data, scales],
          outputs=[output],
          name="test_resize_upsample_scales_cubic_asymmetric",
      )
  
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 17 for calling the Resize obj's underlying member method code with example usage: obj.export_resize_upsample_scales_cubic_asymmetric() without return types