code: def test_negative_load_save():
      shape = (1, 2, 5)
      data = np.arange(10).reshape(shape) - 10.0
      affine = np.eye(4)
      hdr = ni1.Nifti1Header()
      hdr.set_data_dtype(np.int16)
      img = Nifti1Image(data, affine, hdr)
      str_io = BytesIO()
      img.file_map["image"].fileobj = str_io
      img.to_file_map()
      str_io.seek(0)
      re_img = Nifti1Image.from_file_map(img.file_map)
      assert_array_almost_equal(re_img.get_fdata(), data, 4)
  
imports: import logging
  import pathlib
  import shutil
  from io import BytesIO
  from os.path import dirname
  from os.path import join
  from tempfile import mkdtemp
  import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal, assert_array_equal
  from ..None import AnalyzeImage, MGHImage, Minc1Image, Minc2Image, Nifti1Header, Nifti1Image, Nifti1Pair, Nifti2Image, Nifti2Pair, Spm2AnalyzeImage, Spm99AnalyzeImage, all_image_classes
  from ..None import analyze
  from ..None import loadsave
  from ..None import nifti1
  from ..None import spm2analyze
  from ..None import spm99analyze
  from ..optpkg import optional_package
  from ..spatialimages import SpatialImage
  from ..testing import expires
  from ..tmpdirs import InTemporaryDirectory
  from ..volumeutils import native_code, swapped_code
label_desc: Use image node_id 6 for calling a global function with example usage: test_negative_load_save() without return types