code: def test_through(self, device, dtype):
      p0 = torch.tensor([-1.0, -1.0], device=device, dtype=dtype)
      p1 = torch.tensor([1.0, 1.0], device=device, dtype=dtype)
      l1 = ParametrizedLine.through(p0, p1)
      direction_expected = torch.tensor(
          [0.7071, 0.7071], device=device, dtype=dtype
      )
      self.assert_close(l1.origin, p0)
      self.assert_close(l1.direction, direction_expected)
  
imports: import pytest
  import torch
  from torch.autograd import gradcheck
  from kornia.geometry.line import ParametrizedLine, fit_line
  from kornia.geometry.plane import Hyperplane
  from kornia.testing import BaseTester, assert_close
label_desc: Use image node_id 2 for calling the TestParametrizedLine obj's underlying member method code with example usage: obj.test_through(device, dtype) without return types