code: def resize_to(im, nsize, order=3):
      """Resize image to a specified new size
  
      Parameters
      ----------
      im : ndarray
      nsize : sequence of numbers
          Will be the new size of the array
      order : integer, optional
          Spline order to use (default: 3)
  
      Returns
      -------
      im' : ndarray
  
      See Also
      --------
      zoom : Similar function
      imresize : A more flexible, but also confusing, version of this function
      resize_rgb_to : A version appropriate for resize RGB images
      """
      from .interpolate import zoom
  
      if len(nsize) != im.ndim:
          raise ValueError(
              "mahotas.resize_to: new size does not have the same dimension as old one"
          )
      out = np.empty(nsize, dtype=im.dtype)
      nsize = np.array(nsize, dtype=float)
      nsize /= im.shape
      return zoom(im, nsize, order=order, out=out)
  
imports: from __future__ import division
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: resize_to(im, nsize, order) and returns: zoom