code: def test_unclosed_file():
      def open():
          im = Image.open(TEST_FILE)
          im.load()
  
      pytest.warns(ResourceWarning, open)
  
imports: import tempfile
  from io import BytesIO
  import pytest
  from PIL import Image, ImageSequence, SpiderImagePlugin
  from .helper import assert_image_equal_tofile, hopper, is_pypy
label_desc: Use image node_id 2 for calling a global function with example usage: test_unclosed_file() without return types