code: def test_constant_attitude():
      times = np.arange(10)
      rotations = Rotation.from_rotvec(np.ones((10, 3)))
      spline = RotationSpline(times, rotations)
  
      times_check = np.linspace(-1, 11)
      assert_allclose(spline(times_check).as_rotvec(), 1, rtol=1e-15)
      assert_allclose(spline(times_check, 1), 0, atol=1e-17)
      assert_allclose(spline(times_check, 2), 0, atol=1e-17)
  
      assert_allclose(spline(5.5).as_rotvec(), 1, rtol=1e-15)
      assert_allclose(spline(5.5, 1), 0, atol=1e-17)
      assert_allclose(spline(5.5, 2), 0, atol=1e-17)
  
file_path: catboost/contrib/python/scipy/py3/scipy/spatial/transform/tests/test_rotation_spline.py
imports: from itertools import product
  import numpy
  from numpy.testing import assert_allclose
  from pytest import raises
  from scipy.spatial.transform import Rotation, RotationSpline
  from scipy.spatial.transform._rotation_spline import _angular_rate_to_rotvec_dot_matrix, _rotvec_dot_to_angular_rate_matrix, _matrix_vector_product_of_stacks, _angular_acceleration_nonlinear_term, _create_block_3_diagonal_matrix
label_desc: Use image node_id 5 for calling a global function with example usage: test_constant_attitude() without return types