code: def as_native_array(arr):
      """Return `arr` as native byteordered array
  
      If arr is already native byte ordered, return unchanged.  If it is opposite
      endian, then make a native byte ordered copy and return that
  
      Parameters
      ----------
      arr : ndarray
  
      Returns
      -------
      native_arr : ndarray
          If `arr` was native order, this is just `arr`. Otherwise it's a new
          array such that ``np.all(native_arr == arr)``, with native byte
          ordering.
      """
      if endian_codes[arr.dtype.byteorder] == native_code:
          return arr
      return arr.view(arr.dtype.newbyteorder()).byteswap()
  
label_desc: Use image node_id 1 for calling a global function with example usage: as_native_array(arr) and returns: arr, arr