code: def test_oom():
      glyph = struct.pack(
          ">hhhhhhhhhh",
          1,
          0,
          -32767,
          -32767,
          32767,
          32767,
          -32767,
          -32767,
          32767,
          32767,
      )
      fp = BytesIO(b"PILfont\n\nDATA\n" + glyph * 256)
  
      font = ImageFont.ImageFont()
      font._load_pilfont_data(fp, Image.new("L", (1, 1)))
      font.getmask("A" * 1_000_000)
  
file_path: pillow/Tests/test_imagefontpil.py
imports: from __future__ import annotations
  import struct
  import pytest
  from io import BytesIO
  from PIL import Image, ImageDraw, ImageFont, features, _util
  from .helper import assert_image_equal_tofile
label_desc: Use image node_id 8 for calling a global function with example usage: test_oom() without return types