code: def test_fd_leak(self, tmp_path):
      tmpfile = str(tmp_path / "temp.tif")
  
      # this is an mmaped file.
      with Image.open("Tests/images/uint16_1_4660.tif") as im:
          im.save(tmpfile)
  
      im = Image.open(tmpfile)
      fp = im.fp
      assert not fp.closed
      with pytest.raises(OSError):
          os.remove(tmpfile)
      im.load()
      assert fp.closed
  
      # this closes the mmap
      im.close()
  
      # this should not fail, as load should have closed the file pointer,
      # and close should have closed the mmap
      os.remove(tmpfile)
  
imports: import os
  from io import BytesIO
  import pytest
  from PIL import Image, ImageFile, TiffImagePlugin
  from PIL.TiffImagePlugin import RESOLUTION_UNIT, X_RESOLUTION, Y_RESOLUTION
  from .helper import assert_image_equal, assert_image_equal_tofile, assert_image_similar, assert_image_similar_tofile, hopper, is_pypy, is_win32
label_desc: Use image node_id 1 for calling the TestFileTiffW32 obj's underlying member method code with example usage: obj.test_fd_leak(tmp_path) without return types