docs: def inverse(self):
          """Return the inverse chain of transforms."""
          transforms = self.cpu_transforms + self.gpu_transforms
          inv_transforms = [transform.inverse()
                            for transform in transforms[::-1]]
          return TransformChain().add_on_cpu(inv_transforms)