code: def test_write_exif_metadata():
      file_path = "Tests/images/flower.jpg"
      test_buffer = BytesIO()
      with Image.open(file_path) as image:
          expected_exif = image.info["exif"]
  
          image.save(test_buffer, "webp", exif=expected_exif)
  
      test_buffer.seek(0)
      with Image.open(test_buffer) as webp_image:
          webp_exif = webp_image.info.get("exif", None)
      assert webp_exif
      if webp_exif:
          assert webp_exif == expected_exif, "WebP EXIF didn't match"
  
file_path: pillow-simd/Tests/test_file_webp_metadata.py
imports: from io import BytesIO
  import pytest
  from PIL import Image
  from .helper import mark_if_feature_version, skip_unless_feature
label_desc: Use image node_id 3 for calling a global function with example usage: test_write_exif_metadata() without return types