code: def ntpl2array(ntpl):
      
  
      return np.asarray((np.hstack([col for col in ntpl]), ntpl._fields,
                         ntpl.__class__.__name__))
docs: Convert a :func:`collections.namedtuple` object to a :class:`numpy.ndarray`
      object that can be saved using :func:`numpy.savez`.
  
      Parameters
      ----------
      ntpl : collections.namedtuple object
        Named tuple object to be converted to ndarray
  
      Returns
      -------
      arr : ndarray
        Array representation of input named tuple