code: def test_headers_saving_for_animated_gifs(tmp_path):
      important_headers = ["background", "version", "duration", "loop"]
      # Multiframe image
      with Image.open("Tests/images/dispose_bgnd.gif") as im:
          info = im.info.copy()
  
          out = str(tmp_path / "temp.gif")
          im.save(out, save_all=True)
      with Image.open(out) as reread:
          for header in important_headers:
              assert info[header] == reread.info[header]
  
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 13 for calling a global function with example usage: test_headers_saving_for_animated_gifs(tmp_path) without return types