code: def test_roundtrip_save_all(tmp_path):
      # Single frame image
      out = str(tmp_path / "temp.gif")
      im = hopper()
      im.save(out, save_all=True)
      with Image.open(out) as reread:
          assert_image_similar(reread.convert("RGB"), im, 50)
  
      # Multiframe image
      with Image.open("Tests/images/dispose_bgnd.gif") as im:
          out = str(tmp_path / "temp.gif")
          im.save(out, save_all=True)
  
      with Image.open(out) as reread:
          assert reread.n_frames == 5
  
imports: from io import BytesIO
  import pytest
  from PIL import GifImagePlugin, Image, ImageDraw, ImagePalette, features
  from .helper import assert_image_equal, assert_image_equal_tofile, assert_image_similar, hopper, is_pypy, netpbm_available
label_desc: Use image node_id 11 for calling a global function with example usage: test_roundtrip_save_all(tmp_path) without return types