code: def test_data_api(self):
      # Test minimal api data object can initialize
      img = self.image_class(DataLike(), None)
      # Shape may be promoted to higher dimension, but may not reorder or
      # change size
      assert (img.get_fdata().flatten() == np.arange(3)).all()
      assert img.shape[:1] == (3,)
      assert np.prod(img.shape) == 3
  
imports: from io import BytesIO
  import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal
  from ..None import load
  from ..imageclasses import spatial_axes_first
  from ..spatialimages import HeaderDataError, SpatialHeader, SpatialImage
  from ..testing import bytesio_round_trip, expires, memmap_after_ufunc
  from ..tmpdirs import InTemporaryDirectory
label_desc: Use image node_id 5 for calling the TestSpatialImage obj's underlying member method code with example usage: obj.test_data_api() without return types