code: def test_as_euler_symmetric_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=0, high=np.pi, size=(n,))
      angles[:, 2] = np.random.uniform(
          low=-np.pi, high=np.pi, size=(n,)
      )
  
      for axis1 in ["x", "y", "z"]:
          for axis2 in ["x", "y", "z"]:
              if axis1 == axis2:
                  continue
              # Extrinsic rotations
              seq = axis1 + axis2 + axis1
              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 36 for calling a global function with example usage: test_as_euler_symmetric_axes() without return types