code: def test_save_all():
      for test_file in test_files:
          with Image.open(test_file) as im:
              im_reloaded = roundtrip(im, save_all=True)
  
              im.seek(0)
              assert_image_similar(im, im_reloaded, 30)
  
              im.seek(1)
              im_reloaded.seek(1)
              assert_image_similar(im, im_reloaded, 30)
  
      im = Image.new("RGB", (1, 1))
      im2 = Image.new("RGB", (1, 1), "#f00")
      im_reloaded = roundtrip(im, save_all=True, append_images=[im2])
  
      assert_image_equal(im, im_reloaded)
      assert im_reloaded.mpinfo[45056] == b"0100"
  
      im_reloaded.seek(1)
      assert_image_similar(im2, im_reloaded, 1)
  
      # Test that a single frame image will not be saved as an MPO
      jpg = roundtrip(im, save_all=True)
      assert "mp" not in jpg.info
  
imports: from __future__ import annotations
  import warnings
  from io import BytesIO
  import pytest
  from PIL import Image
  from .helper import assert_image_equal, assert_image_similar, is_pypy, skip_unless_feature
label_desc: Use image node_id 22 for calling a global function with example usage: test_save_all() without return types