code: def test_segment():
      if spm.Info.name() == "SPM12":
          assert spm.Segment()._jobtype == "tools"
          assert spm.Segment()._jobname == "oldseg"
      else:
          assert spm.Segment()._jobtype == "spatial"
          assert spm.Segment()._jobname == "preproc"
  
imports: import os
  import pytest
  from nipype.testing.fixtures import create_files_in_directory
  import nipype.interfaces.spm
  from nipype.interfaces.spm import no_spm
  import nipype.interfaces.matlab
label_desc: Use image node_id 11 for calling a global function with example usage: test_segment() without return types