docstr: Test drawing a horizontal line.
docstr_tok: ["Test","drawing","a","horizontal","line","."]
code: def test_draw_line_horizontal(self, dtype, device):
      """Test drawing a horizontal line."""
      img = torch.zeros(1, 8, 8, dtype=dtype, device=device)
      img = draw_line(
          img,
          torch.tensor([6, 4]),
          torch.tensor([0, 4]),
          torch.tensor([255]),
      )
      img_mask = torch.tensor(
          [
              [
                  [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
                  [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
                  [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
                  [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
                  [
                      255.0,
                      255.0,
                      255.0,
                      255.0,
                      255.0,
                      255.0,
                      255.0,
                      0.0,
                  ],
                  [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
                  [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
                  [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
              ]
          ],
          device=device,
          dtype=dtype,
      )
      assert_close(img, img_mask)
  
imports: import math
  import pytest
  import torch
  from kornia.testing import assert_close
  from kornia.utils import create_meshgrid, draw_convex_polygon, draw_rectangle
  from kornia.utils.draw import draw_line, draw_point2d
label_desc: Use image node_id 2 for calling the TestDrawLine obj's underlying member method code with example usage: obj.test_draw_line_horizontal(dtype, device) without return types