code: def test_splprep_segfault():
      # regression test for gh-3847: splprep segfaults if knots are specified
      # for task=-1
      t = np.arange(0, 1.1, 0.1)
      x = np.sin(2 * np.pi * t)
      y = np.cos(2 * np.pi * t)
      tck, u = splprep([x, y], s=0)
      np.arange(0, 1.01, 0.01)
  
      uknots = tck[0]  # using the knots from the previous fitting
      tck, u = splprep([x, y], task=-1, t=uknots)
  
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 7 for calling a global function with example usage: test_splprep_segfault() without return types