code: def test_from_euler_intrinsic_rotation_312():
      angles = [[30, 60, 45], [30, 60, 30], [45, 30, 60]]
      dcm = Rotation.from_euler("ZXY", angles, degrees=True).as_dcm()
  
      assert_array_almost_equal(
          dcm[0],
          np.array(
              [
                  [0.3061862, -0.2500000, 0.9185587],
                  [0.8838835, 0.4330127, -0.1767767],
                  [-0.3535534, 0.8660254, 0.3535534],
              ]
          ),
      )
  
      assert_array_almost_equal(
          dcm[1],
          np.array(
              [
                  [0.5334936, -0.2500000, 0.8080127],
                  [0.8080127, 0.4330127, -0.3995191],
                  [-0.2500000, 0.8660254, 0.4330127],
              ]
          ),
      )
  
      assert_array_almost_equal(
          dcm[2],
          np.array(
              [
                  [0.0473672, -0.6123725, 0.7891491],
                  [0.6597396, 0.6123725, 0.4355958],
                  [-0.7500000, 0.5000000, 0.4330127],
              ]
          ),
      )
  
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 31 for calling a global function with example usage: test_from_euler_intrinsic_rotation_312() without return types