code: def test_te_1smooth():
      from patsy.splines import bs
  
      # Tensor product of 1 smooth covariate should be the same
      # as the smooth alone
      x = (-1.5) ** np.arange(20)
      assert np.allclose(cr(x, df=6), te(cr(x, df=6)))
      assert np.allclose(cc(x, df=5), te(cc(x, df=5)))
      assert np.allclose(bs(x, df=4), te(bs(x, df=4)))
      # Adding centering constraint to tensor product
      assert np.allclose(
          cr(x, df=3, constraints="center"),
          te(cr(x, df=4), constraints="center"),
      )
      # Adding specific constraint
      center_constraint = np.arange(1, 5)
      assert np.allclose(
          cr(x, df=3, constraints=center_constraint),
          te(cr(x, df=4), constraints=center_constraint),
      )
  
imports: import numpy
  from patsy.util import have_pandas, atleast_2d_column_default, no_pickling, assert_no_pickling, safe_string_eq
  from patsy.state import stateful_transform
label_desc: Use image node_id 22 for calling a global function with example usage: test_te_1smooth() without return types