code: def test_jit(self, device, dtype):
      x = torch.rand(1, 3, 4, 4, device=device, dtype=dtype)
      op = _torch_inverse_cast
      op_jit = torch.jit.script(op)
      assert_close(op(x), op_jit(x))
  
imports: import pytest
  import torch
  from kornia.testing import assert_close
  from kornia.utils import _extract_device_dtype
  from kornia.utils.helpers import _torch_histc_cast, _torch_inverse_cast, _torch_solve_cast, _torch_svd_cast, safe_inverse_with_mask, safe_solve_with_mask
label_desc: Use image node_id 3 for calling the TestInverseCast obj's underlying member method code with example usage: obj.test_jit(device, dtype) without return types