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 insert(self, index, image):
      try:
          index = self.validate_position(index)
      except IndexError:
          index = len(self)
      if not isinstance(image, BaseImage):
          raise TypeError(
              "image must be an instance of wand.image."
              "BaseImage, not " + repr(image)
          )
      if not self:
          library.MagickAddImage(self.image.wand, image.wand)
      elif index == 0:
          tmp_idx = self.current_index
          self_wand = self.image.wand
          wand = image.sequence[0].wand
          try:
              # Prepending image into the list using MagickSetFirstIterator()
              # and MagickAddImage() had not worked properly, but was fixed
              # since 6.7.6-0 (rev7106).
              if MAGICK_VERSION_INFO >= (6, 7, 6, 0):
                  library.MagickSetFirstIterator(self_wand)
                  library.MagickAddImage(self_wand, wand)
              else:  # pragma: no cover
                  self.current_index = 0
                  library.MagickAddImage(
                      self_wand, self.image.sequence[0].wand
                  )
                  self.current_index = 0
                  library.MagickAddImage(self_wand, wand)
                  self.current_index = 0
                  library.MagickRemoveImage(self_wand)
          finally:
              self.current_index = tmp_idx
      else:
          with self.index_context(index - 1):
              library.MagickAddImage(
                  self.image.wand, image.sequence[0].wand
              )
      self.instances.insert(index, None)
  
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 11 for calling the Sequence obj's underlying member method code with example usage: obj.insert(index, image) without return types