code: def test_getlength_combine(mode, direction, text):
      if text == "i\u0305i" and direction == "ttb":
          pytest.skip("fails with this font")
  
      ttf = ImageFont.truetype("Tests/fonts/NotoSans-Regular.ttf", 48)
  
      try:
          target = ttf.getlength("ii", mode, direction)
          actual = ttf.getlength(text, mode, direction)
  
          assert actual == target
      except ValueError as ex:
          if (
              direction == "ttb"
              and str(ex)
              == "libraqm 0.7 or greater required for 'ttb' direction"
          ):
              pytest.skip("libraqm 0.7 or greater not available")
  
imports: from __future__ import annotations
  import pytest
  from PIL import Image, ImageDraw, ImageFont
  from .helper import assert_image_similar_tofile, skip_unless_feature
label_desc: Use image node_id 16 for calling a global function with example usage: test_getlength_combine(mode, direction, text) without return types