code: def test_save_as_nifti_file(tmpdir) -> None:
      out_file = str(tmpdir / "nifti.nii")
      shape = (4, 4, 4)
      io.save_as_nifti_file(np.ones(shape), np.eye(4), out_file)
      assert nib.load(out_file).get_fdata().shape == shape
  
file_path: brainiak/tests/io/test_io.py
imports: from pathlib import Path
  from typing import Iterable, Sequence
  import nibabel
  import numpy
  import pytest
  from brainiak import io
label_desc: Use image node_id 13 for calling a global function with example usage: test_save_as_nifti_file(tmpdir) without return types