code: def test_qrotate(vec, M, q):
      vdash = nq.rotate_vector(vec, q)
      vM = M @ vec
      assert_array_almost_equal(vdash, vM)
  
imports: import numpy
  import pytest
  from numpy import pi
  from numpy.testing import assert_array_almost_equal, assert_array_equal
  from ..None import eulerangles
  from ..None import quaternions
label_desc: Use image node_id 15 for calling a global function with example usage: test_qrotate(vec, M, q) without return types