code: def test_read_ordering():
      # DATA_FILE1 has an expected darray[0].data shape of (3,3).  However if we
      # read another image first (DATA_FILE2) then the shape is wrong
      # Read an image
      img2 = load(DATA_FILE2)
      assert img2.darrays[0].data.shape == (143479, 1)
      # Read image for which we know output shape
      img = load(DATA_FILE1)
      assert img.darrays[0].data.shape == (3, 3)
  
imports: import shutil
  import sys
  import warnings
  from os.path import basename, dirname
  from os.path import join
  from unittest import mock
  import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal
  from ...loadsave import load, save
  from ...nifti1 import xform_codes
  from ...testing import clear_and_catch_warnings, suppress_warnings
  from ...tmpdirs import InTemporaryDirectory
  from ..None import gifti
  from ..parse_gifti_fast import GiftiImageParser, GiftiParseError
  from ..util import gifti_endian_codes
label_desc: Use image node_id 3 for calling a global function with example usage: test_read_ordering() without return types