code: def test_closed_file():
      with pytest.warns(None) as record:
          im = Image.open(TEST_IM)
          im.load()
          im.close()
  
      assert not record
  
file_path: pillow-simd/Tests/test_file_im.py
imports: import filecmp
  import pytest
  from PIL import Image, ImImagePlugin
  from .helper import assert_image_equal_tofile, hopper, is_pypy
label_desc: Use image node_id 4 for calling a global function with example usage: test_closed_file() without return types