code: def test_draw(request, tmp_path, encoding):
      tempname = save_font(request, tmp_path, encoding)
      font = ImageFont.load(tempname)
      im = Image.new("L", (150, 30), "white")
      draw = ImageDraw.Draw(im)
      message = charsets[encoding]["message"].encode(encoding)
      draw.text((0, 0), message, "black", font=font)
      assert_image_similar_tofile(im, charsets[encoding]["image1"], 0)
  
file_path: pillow/Tests/test_font_pcf_charsets.py
imports: from __future__ import annotations
  import os
  import pytest
  from PIL import FontFile, Image, ImageDraw, ImageFont, PcfFontFile
  from .helper import assert_image_equal_tofile, assert_image_similar_tofile, skip_unless_feature
label_desc: Use image node_id 3 for calling a global function with example usage: test_draw(request, tmp_path, encoding) without return types