<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _basis_spline_factory(coef, degree, knots, der, ext):
 """Return a B-Spline given some coefficients."""

        return functools.partial(interpolate.splev, tck=(knots, coef, degree), der=der, ext=ext)