code: def is_little_endian(array):
      
      if numpy.little_endian:
          machine_little = True
      else:
          machine_little = False
  
      byteorder = array.dtype.base.byteorder
      return (byteorder == '<') or (machine_little and byteorder == '=')
docs: Return True if array is little endian, False otherwise.
  
      Parameters
      ----------
      array: numpy array
          A numerical python array.
  
      Returns
      -------
      Truth value:
          True for little-endian
  
      Notes
      -----
      Strings are neither big or little endian.  The input must be a simple numpy
      array, not an array with fields.