code: def test_spalde_nc():
      # regression test for https://github.com/scipy/scipy/issues/19002
      # here len(t) = 29 and len(c) = 25 (== len(t) - k - 1)
      x = np.asarray(
          [
              -10.0,
              -9.0,
              -8.0,
              -7.0,
              -6.0,
              -5.0,
              -4.0,
              -3.0,
              -2.5,
              -2.0,
              -1.5,
              -1.0,
              -0.5,
              0.0,
              0.5,
              1.0,
              1.5,
              2.0,
              2.5,
              3.0,
              4.0,
              5.0,
              6.0,
          ],
          dtype="float",
      )
      t = [
          -10.0,
          -10.0,
          -10.0,
          -10.0,
          -9.0,
          -8.0,
          -7.0,
          -6.0,
          -5.0,
          -4.0,
          -3.0,
          -2.5,
          -2.0,
          -1.5,
          -1.0,
          -0.5,
          0.0,
          0.5,
          1.0,
          1.5,
          2.0,
          2.5,
          3.0,
          4.0,
          5.0,
          6.0,
          6.0,
          6.0,
          6.0,
      ]
      c = np.asarray(
          [
              1.0,
              0.0,
              0.0,
              0.0,
              0.0,
              0.0,
              0.0,
              0.0,
              0.0,
              0.0,
              0.0,
              0.0,
              0.0,
              0.0,
              0.0,
              0.0,
              0.0,
              0.0,
              0.0,
              0.0,
              0.0,
              0.0,
              0.0,
              0.0,
              0.0,
          ]
      )
      k = 3
  
      res = spalde(x, (t, c, k))
      res_splev = np.asarray(
          [splev(x, (t, c, k), nu) for nu in range(4)]
      )
      assert_allclose(res, res_splev.T, atol=1e-15)
  
imports: import itertools
  import os
  import numpy
  from numpy.testing import assert_equal, assert_allclose, assert_, assert_almost_equal, assert_array_almost_equal
  from pytest import raises
  import pytest
  from scipy._lib._testutils import check_free_memory
  from scipy.interpolate import RectBivariateSpline
  from scipy.interpolate._fitpack_py import splrep, splev, bisplrep, bisplev, sproot, splprep, splint, spalde, splder, splantider, insert, dblint
  from scipy.interpolate.dfitpack import regrid_smth
  from scipy.interpolate._fitpack2 import dfitpack_int
label_desc: Use image node_id 11 for calling a global function with example usage: test_spalde_nc() without return types