code: def test_from_euler_rotation_order():
      # Intrinsic rotation is same as extrinsic with order reversed
      np.random.seed(0)
      a = np.random.randint(low=0, high=180, size=(6, 3))
      b = a[:, ::-1]
      x = Rotation.from_euler("xyz", a, degrees=True).as_quat()
      y = Rotation.from_euler("ZYX", b, degrees=True).as_quat()
      assert_allclose(x, y)
  
imports: from __future__ import division, print_function, absolute_import
  import pytest
  import numpy
  from numpy.testing import assert_equal, assert_array_almost_equal
  from numpy.testing import assert_allclose
  from scipy.spatial.transform import Rotation, Slerp
  from scipy.stats import special_ortho_group
  from itertools import permutations
label_desc: Use image node_id 29 for calling a global function with example usage: test_from_euler_rotation_order() without return types