code: def test_mcflirt(setup_flirt):
      tmpdir, infile, reffile = setup_flirt
  
      frt = fsl.MCFLIRT()
      assert frt.cmd == "mcflirt"
      # Test generated outfile name
  
      frt.inputs.in_file = infile
      _, nme = os.path.split(infile)
      outfile = os.path.join(os.getcwd(), nme)
      outfile = frt._gen_fname(outfile, suffix="_mcf")
      realcmd = "mcflirt -in " + infile + " -out " + outfile
      assert frt.cmdline == realcmd
      # Test specified outfile name
      outfile2 = "/newdata/bar.nii"
      frt.inputs.out_file = outfile2
      realcmd = "mcflirt -in " + infile + " -out " + outfile2
      assert frt.cmdline == realcmd
  
imports: import os
  from copy import deepcopy
  import pytest
  import pdb
  from nipype.utils.filemanip import split_filename, ensure_list
  from ..None import preprocess
  from nipype.interfaces.fsl import Info
  from nipype.interfaces.base import File, TraitError, Undefined, isdefined
  from nipype.interfaces.fsl import no_fsl
label_desc: Use image node_id 8 for calling a global function with example usage: test_mcflirt(setup_flirt) without return types