code: def instances(self):
      # this returns an iterable container of Klass instances.
      # for "use_ptr_to_array" mode, such a container may not
      # be required at all, so its creation is deferred
      if self.use_sip_array:
          if self._size == self._capa:
              # avoiding slicing when it's not necessary
              # handles the case where sip.array had a buggy
              # slicing implementation
              return self._siparray
          else:
              # this is a view
              return self._siparray[: self._size]
  
      if self._objs is None:
          self._objs = self._wrap_instances(self._ndarray)
  
      if self._size == self._capa:
          return self._objs
      else:
          # this is a shallow copy
          return self._objs[: self._size]
  
imports: import ctypes
  import itertools
  import numpy
  from .None import QT_LIB, QtCore, QtGui, compat
label_desc: Use image node_id 6 for calling the PrimitiveArray obj's underlying member method code with example usage: obj.instances() and returns: self, self, self, self