code: def test_rot90(self, device, dtype):
      angle = torch.tensor([90.0], device=device, dtype=dtype)
      scale = torch.tensor([[1.0, 1.0]], device=device, dtype=dtype)
      center = torch.tensor([[0.0, 0.0]], device=device, dtype=dtype)
      expected = torch.tensor(
          [[[0.0, -1.0, 0.0], [1.0, 0.0, 0.0]]],
          device=device,
          dtype=dtype,
      )
      matrix = kornia.geometry.get_rotation_matrix2d(
          center, angle, scale
      )
      matrix_inv = kornia.geometry.invert_affine_transform(matrix)
      assert_close(matrix_inv, expected, 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 2 for calling the TestInvertAffineTransform obj's underlying member method code with example usage: obj.test_rot90(device, dtype) without return types