code: def test_load_first():
      # load() may change the size of the image
      # Test that thumbnail() is calling it before performing size calculations
      with Image.open("Tests/images/g4_orientation_5.tif") as im:
          im.thumbnail((64, 64))
          assert im.size == (64, 10)
  
      # Test thumbnail(), without draft(),
      # on an image that is large enough once load() has changed the size
      with Image.open("Tests/images/g4_orientation_5.tif") as im:
          im.thumbnail((590, 88), reducing_gap=None)
          assert im.size == (590, 88)
  
file_path: pillow/Tests/test_image_thumbnail.py
imports: from __future__ import annotations
  import pytest
  from PIL import Image
  from .helper import assert_image_equal, assert_image_similar, fromstring, hopper, skip_unless_feature, tostring
label_desc: Use image node_id 6 for calling a global function with example usage: test_load_first() without return types