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):
      if not hasattr(im, "seek"):
          raise AttributeError("im must have seek method")
      self.im = im
      self.position = getattr(self.im, "_min_frame", 0)
  
file_path: catboost/contrib/python/Pillow/py2/PIL/ImageSequence.py
label_desc: Use image node_id 1 to create a new Iterator object from inherited base classes: object with example: obj = Iterator(im)