code: def load_nifti_data(fname, as_ndarray=True):
      """Load only the data array from a nifti file.
  
      Parameters
      ----------
      fname : str
          Full path to the file.
      as_ndarray: bool, optional
          convert nibabel ArrayProxy to a numpy.ndarray.
          If you want to save memory and delay this casting, just turn this
          option to False (default: True)
  
      Returns
      -------
      data: np.ndarray or nib.ArrayProxy
  
      See Also
      --------
      load_nifti
  
      """
      img = nib.load(fname)
      return np.asanyarray(img.dataobj) if as_ndarray else img.dataobj
  
imports: from packaging.version import Version
  import nibabel
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: load_nifti_data(fname, as_ndarray) and returns: unknown