code: def test_sanity(tmp_path):
      test_file = str(tmp_path / "temp.im")
  
      im = hopper("RGB")
      im.save(test_file)
  
      seq = ImageSequence.Iterator(im)
  
      index = 0
      for frame in seq:
          assert_image_equal(im, frame)
          assert im.tell() == index
          index += 1
  
      assert index == 1
  
      with pytest.raises(AttributeError):
          ImageSequence.Iterator(0)
  
file_path: pillow/Tests/test_imagesequence.py
imports: from __future__ import annotations
  import pytest
  from PIL import Image, ImageSequence, TiffImagePlugin
  from .helper import assert_image_equal, hopper, skip_unless_feature
label_desc: Use image node_id 1 for calling a global function with example usage: test_sanity(tmp_path) without return types