code: def test_context_manager():
      with pytest.warns(None) as record:
          with Image.open(test_files[0]) as im:
              im.load()
  
      assert not record
  
imports: from io import BytesIO
  import pytest
  from PIL import Image
  from .helper import assert_image_similar, is_pypy, skip_unless_feature
label_desc: Use image node_id 5 for calling a global function with example usage: test_context_manager() without return types