class_docstr: The list-like object that contains every :class:`SingleImage`
  in the :class:`~wand.image.Image` container.  It implements
  :class:`collections.abc.Sequence` protocol.
  
  .. versionadded:: 0.3.0
class_docstr_tok: ["The","list-like","object","that","contains","every",":","class",":","`","SingleImage","`","in","the",":","class",":","`","~wand.image.Image","`","container",".","It","implements",":","class",":","`","collections.abc.Sequence","`","protocol",".","..","versionadded",":",":","0.3.0"]
code: def validate_position(self, index):
      if not isinstance(index, numbers.Integral):
          raise TypeError("index must be integer, not " + repr(index))
      length = len(self)
      if index >= length or index < -length:
          raise IndexError(
              "out of index: {0} (total: {1})".format(index, length)
          )
      if index < 0:
          index += length
      return index
  
imports: import contextlib
  import ctypes
  import numbers
  from .api import libmagick, library
  from .compat import abc, binary, xrange
  from .image import BaseImage, ImageProperty
  from .version import MAGICK_VERSION_INFO
label_desc: Use image node_id 6 for calling the Sequence obj's underlying member method code with example usage: obj.validate_position(index) and returns: index