code: def test_close_after_load(caplog):
      im = Image.open("Tests/images/hopper.gif")
      im.load()
      with caplog.at_level(logging.DEBUG):
          im.close()
      assert len(caplog.records) == 0
  
file_path: pillow/Tests/test_image_load.py
imports: from __future__ import annotations
  import logging
  import os
  import pytest
  from PIL import Image
  from .helper import hopper
label_desc: Use image node_id 3 for calling a global function with example usage: test_close_after_load(caplog) without return types