code: def test_vec_val_vect():
      for shape0 in ((10,), (100,), (10, 12), (12, 10, 5)):
          for shape1 in ((3, 3), (4, 3), (3, 4)):
              shape = shape0 + shape1
              evecs, evals = make_vecs_vals(shape)
              res1 = np.einsum(
                  "...ij,...j,...kj->...ik", evecs, evals, evecs
              )
              assert_almost_equal(res1, vec_val_vect(evecs, evals))
  
file_path: dipy/dipy/reconst/tests/test_vec_val_vect.py
imports: import numpy
  from numpy.random import randn
  from numpy.testing import assert_almost_equal
  from dipy.reconst.vec_val_sum import vec_val_vect
label_desc: Use image node_id 2 for calling a global function with example usage: test_vec_val_vect() without return types