code: def test_rectangle(bbox):
      # Arrange
      im = Image.new("RGB", (W, H))
      draw = ImageDraw2.Draw(im)
      pen = ImageDraw2.Pen("green", width=2)
      brush = ImageDraw2.Brush("black")
  
      # Act
      draw.rectangle(bbox, pen, brush)
  
      # Assert
      assert_image_equal_tofile(
          im, "Tests/images/imagedraw_rectangle.png"
      )
  
file_path: pillow/Tests/test_imagedraw2.py
imports: from __future__ import annotations
  import os.path
  import pytest
  from PIL import Image, ImageDraw, ImageDraw2, features
  from .helper import assert_image_equal, assert_image_equal_tofile, assert_image_similar_tofile, hopper, skip_unless_feature
label_desc: Use image node_id 7 for calling a global function with example usage: test_rectangle(bbox) without return types