code: def test_geometric_tform():
      with pytest.raises(
          TypeError, match="Can't instantiate abstract class"
      ):
          _GeometricTransform()
  
      # See gh-3926 for discussion details
      for i in range(20):
          # Generate random Homography
          H = np.random.rand(3, 3) * 100
          H[2, H[2] == 0] += np.finfo(float).eps
          H /= H[2, 2]
  
          # Craft some src coords
          src = np.array(
              [
                  [(H[2, 1] + 1) / -H[2, 0], 1],
                  [1, (H[2, 0] + 1) / -H[2, 1]],
                  [1, 1],
              ]
          )
          # Prior to gh-3926, under the above circumstances,
          # destination coordinates could be returned with nan/inf values.
          tform = ProjectiveTransform(H)  # Construct the transform
          dst = tform(src)  # Obtain the dst coords
          # Ensure dst coords are finite numeric values
          assert np.isfinite(dst).all()
  
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 35 for calling a global function with example usage: test_geometric_tform() without return types