code: def test_error_handling():
      raises(ValueError, RotationSpline, [1.0], Rotation.random())
  
      r = Rotation.random(10)
      t = np.arange(10).reshape(5, 2)
      raises(ValueError, RotationSpline, t, r)
  
      t = np.arange(9)
      raises(ValueError, RotationSpline, t, r)
  
      t = np.arange(10)
      t[5] = 0
      raises(ValueError, RotationSpline, t, r)
  
      t = np.arange(10)
  
      s = RotationSpline(t, r)
      raises(ValueError, s, 10, -1)
  
      raises(ValueError, s, np.arange(10).reshape(5, 2))
  
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 7 for calling a global function with example usage: test_error_handling() without return types