code: def test_inverse_all_transforms(tform):
      assert isinstance(tform.inverse, type(tform))
      try:
          assert_almost_equal(
              tform.inverse.inverse.params, tform.params
          )
      except AttributeError:
          assert isinstance(tform, PiecewiseAffineTransform)
      assert_almost_equal(tform.inverse.inverse(SRC), tform(SRC))
      # Test addition with inverse, not implemented for all
      if not isinstance(
          tform,
          EssentialMatrixTransform
          | FundamentalMatrixTransform
          | PiecewiseAffineTransform,
      ):
          assert_almost_equal((tform + tform.inverse)(SRC), SRC)
          assert_almost_equal((tform.inverse + tform)(SRC), SRC)
  
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 34 for calling a global function with example usage: test_inverse_all_transforms(tform) without return types