code: def resize(self, size):
          
          if isinstance(self._data, Array):
              self._data.resize(size)
docs: Re-sizes the :class:`Array` by appending new :class:`Array` elements
          or removing :class:`Array` elements from the end.
  
          :param int size: new size of the :class:`Array` in number of
              :class:`Array` elements.