code: def test_gradcheck(self, device):
      pts = torch.rand(
          2,
          3,
          2,
          device=device,
          requires_grad=True,
          dtype=torch.float64,
      )
      lines = torch.rand(
          2,
          3,
          3,
          device=device,
          requires_grad=True,
          dtype=torch.float64,
      )
      assert gradcheck(
          kgl.point_line_distance,
          (pts, lines),
          raise_exception=True,
          fast_mode=True,
      )
  
imports: import pytest
  import torch
  from torch.autograd import gradcheck
  import kornia
  import kornia.geometry.linalg
  import kornia.testing
  from kornia.testing import BaseTester, assert_close
label_desc: Use image node_id 5 for calling the TestPointsLinesDistances obj's underlying member method code with example usage: obj.test_gradcheck(device) without return types