code: def test_textsize():
      # Arrange
      im = Image.new("RGB", (W, H))
      draw = ImageDraw2.Draw(im)
      font = ImageDraw2.Font("white", FONT_PATH)
  
      # Act
      size = draw.textsize("ImageDraw2", font)
  
      # Assert
      assert size[1] == 12
  
imports: import os.path
  from PIL import Image, ImageDraw, ImageDraw2
  from .helper import assert_image_equal, assert_image_equal_tofile, assert_image_similar_tofile, hopper, skip_unless_feature
label_desc: Use image node_id 18 for calling a global function with example usage: test_textsize() without return types