class_docstr: Test drawing individual pixels.
docstr: Test that the color is correctly cast to the image dtype when drawing points.
docstr_tok: ["Test","that","the","color","is","correctly","cast","to","the","image","dtype","when","drawing","points","."]
code: def test_draw_point2d_with_mismatched_dtype(self, device):
      """Test that the color is correctly cast to the image dtype when drawing points."""
      points = torch.tensor([(1, 3), (2, 4)], device=device)
      color = torch.tensor(
          [5, 10, 15], dtype=torch.float32, device=device
      )
      img = torch.zeros(3, 8, 8, dtype=torch.uint8, device=device)
      img = draw_point2d(img, points, color)
      assert img.dtype is torch.uint8
      for x, y in points:
          assert_close(img[:, y, x], color.to(torch.uint8))
  
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 5 for calling the TestDrawPoint obj's underlying member method code with example usage: obj.test_draw_point2d_with_mismatched_dtype(device) without return types