code: def test_as_euler_asymmetric_axes():
      np.random.seed(0)
      n = 10
      angles = np.empty((n, 3))
      angles[:, 0] = np.random.uniform(
          low=-np.pi, high=np.pi, size=(n,)
      )
      angles[:, 1] = np.random.uniform(
          low=-np.pi / 2, high=np.pi / 2, size=(n,)
      )
      angles[:, 2] = np.random.uniform(
          low=-np.pi, high=np.pi, size=(n,)
      )
  
      for seq_tuple in permutations("xyz"):
          # Extrinsic rotations
          seq = "".join(seq_tuple)
          assert_allclose(
              angles, Rotation.from_euler(seq, angles).as_euler(seq)
          )
          # Intrinsic rotations
          seq = seq.upper()
          assert_allclose(
              angles, Rotation.from_euler(seq, angles).as_euler(seq)
          )
  
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 35 for calling a global function with example usage: test_as_euler_asymmetric_axes() without return types