class_docstr: Test drawing individual pixels.
docstr: Test that we raise if the len of the color tensor != the # of image channels.
docstr_tok: ["Test","that","we","raise","if","the","len","of","the","color","tensor","!","=","the","#","of","image","channels","."]
code: def test_draw_point2d_with_mismatched_dims(self, dtype, device):
      """Test that we raise if the len of the color tensor != the # of image channels."""
      points = torch.tensor([(1, 3), (2, 4)], device=device)
      color = torch.tensor([100], dtype=dtype, device=device)
      img = torch.zeros(3, 8, 8, dtype=dtype, device=device)
      with pytest.raises(Exception):
          draw_point2d(img, points, color)
  
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 4 for calling the TestDrawPoint obj's underlying member method code with example usage: obj.test_draw_point2d_with_mismatched_dims(dtype, device) without return types