code: def test_smoke(self, device, batch, color):
      black_image = torch.zeros(
          batch, 1, 3, 3, device=device
      )  # 1 channel 3x3 black_image
      points = (
          torch.tensor([1.0, 1.0, 1.0, 1.0])
          .to(device)
          .expand(batch, 1, 4)
      )  # single pixel rectangle
  
      draw_rectangle(black_image, points, color=color)
  
      target = torch.zeros(batch, 1, 3, 3, device=device)
      target[:, :, 1, 1] = color
  
      assert torch.all(black_image == target)
  
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 1 for calling the TestDrawRectangle obj's underlying member method code with example usage: obj.test_smoke(device, batch, color) without return types