code: def test_angle_axis2quat():
      q = nq.angle_axis2quat(0, [1, 0, 0])
      assert_array_equal(q, [1, 0, 0, 0])
      q = nq.angle_axis2quat(np.pi, [1, 0, 0])
      assert_array_almost_equal(q, [0, 1, 0, 0])
      q = nq.angle_axis2quat(np.pi, [1, 0, 0], True)
      assert_array_almost_equal(q, [0, 1, 0, 0])
      q = nq.angle_axis2quat(np.pi, [2, 0, 0], False)
      assert_array_almost_equal(q, [0, 1, 0, 0])
  
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 17 for calling a global function with example usage: test_angle_axis2quat() without return types