code: def test_gradcheck(self, device):
      pts1 = torch.rand(
          2,
          4,
          2,
          device=device,
          dtype=torch.float64,
          requires_grad=True,
      )
      pts2 = torch.rand(2, 4, 2, device=device, dtype=torch.float64)
      Fm = utils2.create_random_fundamental_matrix(1).type_as(pts1)
      assert gradcheck(
          epi.get_closest_point_on_epipolar_line,
          (pts1, pts2, Fm),
          raise_exception=True,
          fast_mode=True,
      )
  
imports: from typing import Dict
  import pytest
  import test_common
  import torch
  from torch.autograd import gradcheck
  import kornia.geometry.epipolar
  import kornia.testing
  from kornia.testing import assert_close
label_desc: Use image node_id 3 for calling the TestGetClosestPointOnEpipolarLine obj's underlying member method code with example usage: obj.test_gradcheck(device) without return types