code: def test_line(points):
      # Arrange
      im = Image.new("RGB", (W, H))
      draw = ImageDraw2.Draw(im)
      pen = ImageDraw2.Pen("yellow", width=2)
  
      # Act
      draw.line(points, pen)
  
      # Assert
      assert_image_equal_tofile(im, "Tests/images/imagedraw_line.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 4 for calling a global function with example usage: test_line(points) without return types