code: def test_smoke(self, device, dtype):
      matrix = torch.eye(2, 3, device=device, dtype=dtype)[None]
      matrix_inv = kornia.geometry.invert_affine_transform(matrix)
      assert_close(matrix, matrix_inv, rtol=1e-4, atol=1e-4)
  
imports: import sys
  import pytest
  import torch
  from torch.autograd import gradcheck
  import kornia
  import kornia.testing
  from kornia.testing import assert_close
  from kornia.utils._compat import torch_version, torch_version_lt
  from kornia.utils.helpers import _torch_inverse_cast
label_desc: Use image node_id 1 for calling the TestInvertAffineTransform obj's underlying member method code with example usage: obj.test_smoke(device, dtype) without return types