code: def reshape(self, *dims):
          
          shape = _dims2shape(*dims)
          if _volume(shape) != self.size:
              raise ValueError("expected shape with equal volume")
          return self.__class__(self._items, shape, self.ftype)
docs: Return an equivalent farray with a modified shape.