code: def header_data_from_array_1_0(array):
      """Get the dictionary of header metadata from a numpy.ndarray.
  
      Parameters
      ----------
      array : numpy.ndarray
  
      Returns
      -------
      d : dict
          This has the appropriate entries for writing its string representation
          to the header of the file.
      """
      d = {"shape": array.shape}
      if array.flags.c_contiguous:
          d["fortran_order"] = False
      elif array.flags.f_contiguous:
          d["fortran_order"] = True
      else:
          # Totally non-contiguous data. We will have to make it C-contiguous
          # before writing. Note that we need to test for C_CONTIGUOUS first
          # because a 1-D array is both C_CONTIGUOUS and F_CONTIGUOUS.
          d["fortran_order"] = False
  
      d["descr"] = dtype_to_descr(array.dtype)
      return d
  
imports: from __future__ import division, absolute_import, print_function
  import numpy
  import sys
  import io
  import warnings
  from numpy.lib.utils import safe_eval
  from numpy.compat import asbytes, asstr, isfileobj, long, os_fspath
  from numpy.core.numeric import pickle
label_desc: Use image node_id 6 for calling a global function with example usage: header_data_from_array_1_0(array) and returns: d