code: def test_from_dcm_ortho_output():
      np.random.seed(0)
      dcm = np.random.random((100, 3, 3))
      ortho_dcm = Rotation.from_dcm(dcm).as_dcm()
  
      mult_result = np.einsum(
          "...ij,...jk->...ik",
          ortho_dcm,
          ortho_dcm.transpose((0, 2, 1)),
      )
  
      eye3d = np.zeros((100, 3, 3))
      for i in range(3):
          eye3d[:, i, i] = 1.0
  
      assert_array_almost_equal(mult_result, eye3d)
  
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 16 for calling a global function with example usage: test_from_dcm_ortho_output() without return types