code: def load(filename):
      """Load an image from the given filename.
  
      Parameters
      ----------
      filename : string
          Should resolve to a complete filename path.
  
      Returns
      -------
      image : An `Image` object
          If successful, a new `Image` object is returned.
  
      See Also
      --------
      save_image : function for saving images
      Image : image object
  
      Examples
      --------
      >>> from nipy.io.api import load_image
      >>> from nipy.testing import anatfile
      >>> img = load_image(anatfile)
      >>> img.shape
      (33, 41, 25)
      """
      if str(filename).endswith(".mnc"):
          raise ValueError(
              "Sorry, we can't get the MINC axis names right yet"
          )
      img = nib.load(filename)
      # Deal with older nibabel
      ni_img = nib.Nifti1Image(
          get_dataobj(img), get_affine(img), get_header(img)
      )
      return nifti2nipy(ni_img)
  
file_path: nipy/nipy/io/files.py
imports: import os
  import nibabel
  import numpy
  from nibabel.spatialimages import HeaderDataError
  from ..core.image.image import is_image
  from .nibcompat import get_affine, get_dataobj, get_header
  from .nifti_ref import nifti2nipy, nipy2nifti
label_desc: Use image node_id 1 for calling a global function with example usage: load(filename) and returns: nifti2nipy