code: def test_save_full_animated_gif_to_file(fx_asset):
      """Save all frames of an animated to a Python file object."""
      temp_filename = os.path.join(tempfile.mkdtemp(), "savetest.gif")
      orig_filename = str(fx_asset.joinpath("nocomments.gif"))
      with open(temp_filename, "w+b") as fp:
          with Image(filename=orig_filename) as orig:
              orig.save(file=fp)
      assert os.path.isfile(temp_filename)
      with Image(filename=orig_filename) as orig:
          with Image(filename=temp_filename) as temp:
              assert len(orig.sequence) == len(temp.sequence)
      os.remove(temp_filename)
  
imports: import codecs
  import io
  import os
  import os.path
  import shutil
  import struct
  import sys
  import tempfile
  from pytest import mark, raises
  from wand.image import ClosedImageError, Image
  from wand.color import Color
  from wand.font import Font
label_desc: Use image node_id 28 for calling a global function with example usage: test_save_full_animated_gif_to_file(fx_asset) without return types