code: def test_aff2euler():
      xr = 0.1
      yr = -1.3
      zr = 3.1
      scales = (2.1, 3.2, 4.4)
      R = np.dot(euler.euler2mat(xr, yr, zr), np.diag(scales))
      aff = np.eye(4)
      aff[:3, :3] = R
      aff[:3, 3] = [11, 12, 13]
      npt.assert_almost_equal(reg.aff2euler(aff), (xr, yr, zr))
  
file_path: nipy/nipy/algorithms/registration/tests/test_scripting.py
imports: import gc
  from os.path import split
  import nibabel.eulerangles
  import numpy
  import numpy.testing
  import nipy.algorithms.registration
  from nipy.io.api import load_image, save_image
  from nipy.testing import funcfile
label_desc: Use image node_id 2 for calling a global function with example usage: test_aff2euler() without return types