code: def test_close():
      im = Image.open("Tests/images/hopper.gif")
      im.close()
      with pytest.raises(ValueError):
          im.load()
      with pytest.raises(ValueError):
          im.getpixel((0, 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 2 for calling a global function with example usage: test_close() without return types