code: def test_sanity():
      im = hopper("RGB").copy()
  
      draw = ImageDraw2.Draw(im)
      pen = ImageDraw2.Pen("blue", width=7)
      draw.line(list(range(10)), pen)
  
      draw, handler = ImageDraw.getdraw(im)
      pen = ImageDraw2.Pen("blue", width=7)
      draw.line(list(range(10)), pen)
  
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 1 for calling a global function with example usage: test_sanity() without return types