code: def test_inverse_1(M, q):
      iq = nq.inverse(q)
      iqM = nq.quat2mat(iq)
      iM = np.linalg.inv(M)
      assert np.allclose(iM, iqM)
  
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 9 for calling a global function with example usage: test_inverse_1(M, q) without return types