code: def test_euclidean_param_defaults():
      # 2D rotation is 0 when only translation is given
      tf = EuclideanTransform(translation=(5, 5))
      assert np.array(tf)[0, 1] == 0
      # off diagonals are 0 when only translation is given
      tf = EuclideanTransform(translation=(4, 5, 9), dimensionality=3)
      assert_equal(
          np.array(tf)[[0, 0, 1, 1, 2, 2], [1, 2, 0, 2, 0, 1]], 0
      )
      with pytest.raises(ValueError):
          # specifying parameters for D>3 is not supported
          _ = EuclideanTransform(
              translation=(5, 6, 7, 8), dimensionality=4
          )
      with pytest.raises(ValueError):
          # incorrect number of angles for given dimensionality
          _ = EuclideanTransform(rotation=(4, 8), dimensionality=3)
      # translation is 0 when rotation is given
      tf = EuclideanTransform(
          rotation=np.pi * np.arange(3), dimensionality=3
      )
      assert_equal(np.array(tf)[:-1, 3], 0)
  
imports: import re
  import textwrap
  import numpy
  import pytest
  from numpy.testing import assert_almost_equal, assert_array_almost_equal, assert_equal
  from skimage.transform import AffineTransform, EssentialMatrixTransform, EuclideanTransform, FundamentalMatrixTransform, PiecewiseAffineTransform, PolynomialTransform, ProjectiveTransform, SimilarityTransform, estimate_transform, matrix_transform
  from skimage.transform._geometric import _GeometricTransform, _affine_matrix_from_vector, _center_and_normalize_points, _euler_rotation_matrix
label_desc: Use image node_id 48 for calling a global function with example usage: test_euclidean_param_defaults() without return types