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 extend(self, images, offset=None):
      tmp_idx = self.current_index
      wand = self.image.wand
      length = 0
      try:
          if offset is None:
              library.MagickSetLastIterator(self.image.wand)
          else:
              if offset == 0:
                  images = iter(images)
                  self.insert(0, next(images))
                  offset += 1
              self.current_index = offset - 1
          if isinstance(images, type(self)):
              library.MagickAddImage(wand, images.image.wand)
              length = len(images)
          else:
              delta = 1 if MAGICK_VERSION_INFO >= (6, 7, 6, 0) else 2
              for image in images:
                  if not isinstance(image, BaseImage):
                      raise TypeError(
                          "images must consist of only instances of "
                          "wand.image.BaseImage, not " + repr(image)
                      )
                  else:
                      library.MagickAddImage(
                          wand, image.sequence[0].wand
                      )
                      self.instances = []
                      if offset is None:
                          library.MagickSetLastIterator(self.image.wand)
                      else:
                          self.current_index += delta
                      length += 1
      finally:
          self.current_index = tmp_idx
      null_list = [None] * length
      if offset is None:
          self.instances[offset:] = null_list
      else:
          self.instances[offset:offset] = null_list
  
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 13 for calling the Sequence obj's underlying member method code with example usage: obj.extend(images, offset) without return types