code: def test_text():
      # Arrange
      im = Image.new("RGB", (W, H))
      draw = ImageDraw2.Draw(im)
      font = ImageDraw2.Font("white", FONT_PATH)
      expected = "Tests/images/imagedraw2_text.png"
  
      # Act
      draw.text((5, 5), "ImageDraw2", font)
  
      # Assert
      assert_image_similar_tofile(im, expected, 13)
  
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 9 for calling a global function with example usage: test_text() without return types