code: def test_inverse():
      t1 = Transform("in", "mid", mapping=id, inverse_mapping=id)
      t2 = Transform("mid", "out", mapping=mapping)
      t3 = Transform("mid", "out", inverse_mapping=mapping)
      for t in (t1, t2, t3):
          assert t.get_inverse().get_inverse() == t
  
file_path: nipy/nipy/labs/datasets/transforms/tests/test_transform.py
imports: import copy
  import numpy
  import pytest
  from ..transform import CompositionError, Transform
label_desc: Use image node_id 5 for calling a global function with example usage: test_inverse() without return types