code: def test_malformed_1d_from_rotvec():
      with pytest.raises(
          ValueError, match="Expected `rot_vec` to have shape"
      ):
          Rotation.from_rotvec([1, 2])
  
imports: from __future__ import division, print_function, absolute_import
  import pytest
  import numpy
  from numpy.testing import assert_equal, assert_array_almost_equal
  from numpy.testing import assert_allclose
  from scipy.spatial.transform import Rotation, Slerp
  from scipy.stats import special_ortho_group
  from itertools import permutations
label_desc: Use image node_id 21 for calling a global function with example usage: test_malformed_1d_from_rotvec() without return types