code: def test_basic_degree_1():
      d = 1
      knots = range(5)
      splines = bspline_basis_set(d, knots, x)
      assert splines[0] == Piecewise(
          (x, Interval(0, 1).contains(x)),
          (2 - x, Interval(1, 2).contains(x)),
          (0, True),
      )
      assert splines[1] == Piecewise(
          (-1 + x, Interval(1, 2).contains(x)),
          (3 - x, Interval(2, 3).contains(x)),
          (0, True),
      )
      assert splines[2] == Piecewise(
          (-2 + x, Interval(2, 3).contains(x)),
          (4 - x, Interval(3, 4).contains(x)),
          (0, True),
      )
  
file_path: sympy/sympy/functions/special/tests/test_bsplines.py
imports: from sympy.functions import bspline_basis_set, interpolating_spline
  from sympy.core.numbers import Rational
  from sympy.core.singleton import S
  from sympy.core.symbol import symbols
  from sympy.functions.elementary.piecewise import Piecewise
  from sympy.logic.boolalg import And
  from sympy.sets.sets import Interval
  from sympy.testing.pytest import slow
label_desc: Use image node_id 2 for calling a global function with example usage: test_basic_degree_1() without return types