code: def test_reorient_vectors():
      with clear_and_catch_warnings():
          bvec = np.arange(12).reshape((3, 4))
          npt.assert_array_equal(
              reorient_vectors(bvec, "ras", "ras"), bvec
          )
          npt.assert_array_equal(
              reorient_vectors(bvec, "ras", "lpi"), -bvec
          )
          result = bvec[[1, 2, 0]]
          npt.assert_array_equal(
              reorient_vectors(bvec, "ras", "asr"), result
          )
          bvec = result
          result = bvec[[1, 0, 2]] * [[-1], [1], [-1]]
          npt.assert_array_equal(
              reorient_vectors(bvec, "asr", "ial"), result
          )
          result = bvec[[1, 0, 2]] * [[-1], [1], [1]]
          npt.assert_array_equal(
              reorient_vectors(bvec, "asr", "iar"), result
          )
          npt.assert_raises(
              ValueError, reorient_vectors, bvec, "ras", "ra"
          )
  
          bvec = np.arange(12).reshape((3, 4))
          bvec = bvec.T
          npt.assert_array_equal(
              reorient_vectors(bvec, "ras", "ras", axis=1), bvec
          )
          npt.assert_array_equal(
              reorient_vectors(bvec, "ras", "lpi", axis=1), -bvec
          )
          result = bvec[:, [1, 2, 0]]
          npt.assert_array_equal(
              reorient_vectors(bvec, "ras", "asr", axis=1), result
          )
          bvec = result
          result = bvec[:, [1, 0, 2]] * [-1, 1, -1]
          npt.assert_array_equal(
              reorient_vectors(bvec, "asr", "ial", axis=1), result
          )
          result = bvec[:, [1, 0, 2]] * [-1, 1, 1]
          npt.assert_array_equal(
              reorient_vectors(bvec, "asr", "iar", axis=1), result
          )
      bvec = np.arange(12).reshape((3, 4))
  
imports: import warnings
  import numpy
  import numpy.testing
  import pytest
  from dipy.data import get_fnames
  from dipy.core.gradients import b0_threshold_empty_gradient_message, b0_threshold_update_slicing_message, gradient_table, GradientTable, gradient_table_from_bvals_bvecs, gradient_table_from_qvals_bvecs, gradient_table_from_gradient_strength_bvecs, WATER_GYROMAGNETIC_RATIO, mask_non_weighted_bvals, orientation_to_string, reorient_bvecs, generate_bvecs, check_multi_b, round_bvals, get_bval_indices, unique_bvals_magnitude, unique_bvals_tolerance, unique_bvals, params_to_btens, btens_to_params, orientation_from_string, reorient_vectors
  from dipy.core.geometry import vec2vec_rotmat, vector_norm
  from dipy.io.gradients import read_bvals_bvecs
  from dipy.utils.deprecator import ExpiredDeprecationError
  from dipy.testing import clear_and_catch_warnings
  from dipy.testing.decorators import set_random_number_generator
label_desc: Use image node_id 25 for calling a global function with example usage: test_reorient_vectors() without return types