code: def test_textbbox():
      # Arrange
      im = Image.new("RGB", (W, H))
      draw = ImageDraw2.Draw(im)
      font = ImageDraw2.Font("white", FONT_PATH)
  
      # Act
      bbox = draw.textbbox((0, 0), "ImageDraw2", font)
  
      # Assert
      right = 72 if features.check_feature("raqm") else 70
      assert bbox == (0, 2, right, 12)
  
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 10 for calling a global function with example usage: test_textbbox() without return types