class_docstr: This class implements an iterator object that can be used to loop
  over an image sequence.
  
  You can use the ``[]`` operator to access elements by index. This operator
  will raise an :py:exc:`IndexError` if you try to access a nonexistent
  frame.
  
  :param im: An image object.
code: def __init__(self, im: Image.Image):
      if not hasattr(im, "seek"):
          msg = "im must have seek method"
          raise AttributeError(msg)
      self.im = im
      self.position = getattr(self.im, "_min_frame", 0)
  
file_path: pillow/src/PIL/ImageSequence.py
imports: from __future__ import annotations
  from typing import Callable
  from .None import Image
label_desc: Use image node_id 1 to create a new Iterator object  with example: obj = Iterator(im)