code: def test_pickle_font_file(tmp_path, protocol):
      # Arrange
      font = ImageFont.truetype(FONT_PATH, FONT_SIZE)
      filename = str(tmp_path / "temp.pkl")
  
      # Act: roundtrip
      with open(filename, "wb") as f:
          pickle.dump(font, f, protocol)
      with open(filename, "rb") as f:
          unpickled_font = pickle.load(f)
  
      # Assert
      helper_assert_pickled_font_images(font, unpickled_font)
  
file_path: pillow/Tests/test_pickle.py
imports: from __future__ import annotations
  import pickle
  import pytest
  from PIL import Image, ImageDraw, ImageFont
  from .helper import assert_image_equal, skip_unless_feature
label_desc: Use image node_id 8 for calling a global function with example usage: test_pickle_font_file(tmp_path, protocol) without return types