code: def test_no_resource_warning_on_save(self, tmp_path):
      # https://github.com/python-pillow/Pillow/issues/835
      # Arrange
      test_file = "Tests/images/hopper.png"
      temp_file = str(tmp_path / "temp.jpg")
  
      # Act/Assert
      with Image.open(test_file) as im:
          with pytest.warns(None) as record:
              im.save(temp_file)
          assert not record
  
imports: import io
  import os
  import shutil
  import sys
  import tempfile
  import pytest
  from PIL import Image, ImageDraw, ImagePalette, UnidentifiedImageError
  from .helper import assert_image_equal, assert_image_equal_tofile, assert_image_similar_tofile, assert_not_all_same, hopper, is_win32, mark_if_feature_version, skip_unless_feature
label_desc: Use image node_id 45 for calling the TestImage obj's underlying member method code with example usage: obj.test_no_resource_warning_on_save(tmp_path) without return types