code: def test_unclosed_file():
      def open():
          TarIO.TarIO(TEST_TAR_FILE, "hopper.jpg")
  
      pytest.warns(ResourceWarning, open)
  
imports: import pytest
  from PIL import Image, TarIO, features
  from .helper import is_pypy
label_desc: Use image node_id 2 for calling a global function with example usage: test_unclosed_file() without return types