code: def check_dtypes(self, expected, actual):
      # Some images will want dtypes to be equal including endianness,
      # others may only require the same type
      assert expected == actual
  
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 6 for calling the TestSpatialImage obj's underlying member method code with example usage: obj.check_dtypes(expected, actual) without return types