code: def test_context_manager():
      with warnings.catch_warnings():
          with Image.open(TEST_IM) as im:
              im.load()
  
file_path: pillow/Tests/test_file_im.py
imports: from __future__ import annotations
  import filecmp
  import warnings
  import pytest
  from PIL import Image, ImImagePlugin
  from .helper import assert_image_equal_tofile, hopper, is_pypy
label_desc: Use image node_id 5 for calling a global function with example usage: test_context_manager() without return types