class_docstr: Class to contain ND image as list of (N-1)D images 
docstr: Return data in ndarray.  Called through numpy.array.
  
  Examples
  --------
  >>> from nipy.testing import funcfile
  >>> from nipy.io.api import load_image
  >>> funcim = load_image(funcfile)
  >>> ilist = ImageList.from_image(funcim, axis='t')
  >>> np.asarray(ilist).shape
  (20, 17, 21, 3)
docstr_tok: ["Return","data","in","ndarray",".","Called","through","numpy.array",".","Examples","--","--","--","--",">",">",">","from","nipy.testing","import","funcfile",">",">",">","from","nipy.io.api","import","load_image",">",">",">","funcim","=","load_image","(","funcfile",")",">",">",">","ilist","=","ImageList.from_image","(","funcim",",","axis='t","'",")",">",">",">","np.asarray","(","ilist",")",".shape","(","20",",","17",",","21",",","3",")"]
code: def __array__(self):
      """Return data in ndarray.  Called through numpy.array.
  
      Examples
      --------
      >>> from nipy.testing import funcfile
      >>> from nipy.io.api import load_image
      >>> funcim = load_image(funcfile)
      >>> ilist = ImageList.from_image(funcim, axis='t')
      >>> np.asarray(ilist).shape
      (20, 17, 21, 3)
      """
      """Return data as a numpy array."""
      warnings.warn(
          "Please use get_list_data() instead - default "
          "conversion to array will be deprecated",
          DeprecationWarning,
          stacklevel=2,
      )
      return self.get_list_data(axis=0)
  
file_path: nipy/nipy/core/image/image_list.py
imports: import warnings
  import numpy
  from ..reference.coordinate_map import AxisError, drop_io_dim, io_axis_indices
  from .image import Image, is_image, iter_axis
label_desc: Use image node_id 7 for calling the ImageList obj's underlying member method code with example usage: obj.__array__() and returns: self