code: def test_write_animated_metadata(tmp_path):
      iccp_data = b"<iccp_data>"
      exif_data = b"<exif_data>"
      xmp_data = b"<xmp_data>"
  
      temp_file = str(tmp_path / "temp.webp")
      with Image.open("Tests/images/anim_frame1.webp") as frame1:
          with Image.open("Tests/images/anim_frame2.webp") as frame2:
              frame1.save(
                  temp_file,
                  save_all=True,
                  append_images=[frame2, frame1, frame2],
                  icc_profile=iccp_data,
                  exif=exif_data,
                  xmp=xmp_data,
              )
  
      with Image.open(temp_file) as image:
          assert "icc_profile" in image.info
          assert "exif" in image.info
          assert "xmp" in image.info
          assert iccp_data == image.info.get("icc_profile", None)
          assert exif_data == image.info.get("exif", None)
          assert xmp_data == image.info.get("xmp", None)
  
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 7 for calling a global function with example usage: test_write_animated_metadata(tmp_path) without return types