code: def test_scan_for_fnames(create_files_in_directory):
      filelist, outdir = create_files_in_directory
      names = spm.scans_for_fnames(filelist, keep4d=True)
      assert names[0] == filelist[0]
      assert names[1] == filelist[1]
  
file_path: nipype/nipype/interfaces/spm/tests/test_base.py
imports: import os
  import numpy
  import pytest
  from nipype.testing.fixtures import create_files_in_directory
  import nipype.interfaces.spm.base
  from nipype.interfaces.spm import no_spm
  import nipype.interfaces.matlab
  from nipype.interfaces.spm.base import SPMCommandInputSpec
  from nipype.interfaces.base import traits
label_desc: Use image node_id 1 for calling a global function with example usage: test_scan_for_fnames(create_files_in_directory) without return types