code: def test_jit(self, device, dtype):
      B, C, H, W = 2, 1, 32, 32
      patches = torch.ones(B, C, H, W, device=device, dtype=dtype)
      model = HardNet().to(patches.device, patches.dtype).eval()
      model_jit = torch.jit.script(
          HardNet().to(patches.device, patches.dtype).eval()
      )
      assert_close(model(patches), model_jit(patches))
  
file_path: kornia/test/feature/test_hardnet.py
imports: import pytest
  import torch
  from torch.autograd import gradcheck
  import kornia.testing
  from kornia.feature import HardNet, HardNet8
  from kornia.testing import assert_close
label_desc: Use image node_id 4 for calling the TestHardNet obj's underlying member method code with example usage: obj.test_jit(device, dtype) without return types