code: def test_str():
      result = """AffineTransform(
     function_domain=CoordinateSystem(coord_names=('i', 'j', 'k'), name='', coord_dtype=float64),
     function_range=CoordinateSystem(coord_names=('x', 'y', 'z'), name='', coord_dtype=float64),
     affine=array([[ 1.,  0.,  0.,  0.],
                   [ 0.,  1.,  0.,  0.],
                   [ 0.,  0.,  1.,  0.],
                   [ 0.,  0.,  0.,  1.]])
  )"""
      domain = CoordinateSystem("ijk")
      range = CoordinateSystem("xyz")
      affine = np.identity(4)
      affine_mapping = AffineTransform(domain, range, affine)
      with np.printoptions(legacy="1.13"):
          assert result == str(affine_mapping)
  
      cmap = CoordinateMap(domain, range, np.exp, np.log)
      result = """CoordinateMap(
     function_domain=CoordinateSystem(coord_names=('i', 'j', 'k'), name='', coord_dtype=float64),
     function_range=CoordinateSystem(coord_names=('x', 'y', 'z'), name='', coord_dtype=float64),
     function=<ufunc 'exp'>,
     inverse_function=<ufunc 'log'>
    )"""
      cmap = CoordinateMap(domain, range, np.exp)
      result = """CoordinateMap(
     function_domain=CoordinateSystem(coord_names=('i', 'j', 'k'), name='', coord_dtype=float64),
     function_range=CoordinateSystem(coord_names=('x', 'y', 'z'), name='', coord_dtype=float64),
     function=<ufunc 'exp'>
    )"""
      assert result == repr(cmap)
  
imports: from copy import copy
  from types import SimpleNamespace
  import numpy
  from ..coordinate_map import AffineTransform, AxisError, CoordinateMap, CoordMapMaker, CoordMapMakerError, _as_coordinate_map, _fix0, append_io_dim, axmap, compose, drop_io_dim, equivalent, input_axis_index, io_axis_indices, orth_axes, product, shifted_domain_origin, shifted_range_origin
  from ..coordinate_system import CoordinateSystem, CoordinateSystemError, CoordSysMaker
  import pytest
  from numpy.testing import assert_almost_equal, assert_array_equal
label_desc: Use image node_id 26 for calling a global function with example usage: test_str() without return types