code: def test_textsize_empty_string():
      # Arrange
      im = Image.new("RGB", (W, H))
      draw = ImageDraw2.Draw(im)
      font = ImageDraw2.Font("white", FONT_PATH)
  
      # Act
      # Should not cause 'SystemError: <built-in method getsize of
      # ImagingFont object at 0x...> returned NULL without setting an error'
      draw.textbbox((0, 0), "", font)
      draw.textbbox((0, 0), "\n", font)
      draw.textbbox((0, 0), "test\n", font)
      draw.textlength("", font)
  
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 11 for calling a global function with example usage: test_textsize_empty_string() without return types