code: def test_FSLCommand2():
      # Check default output type and environ
      cmd = fsl.FSLCommand(command="junk")
      assert cmd._output_type == fsl.Info.output_type()
      assert cmd.inputs.environ["FSLOUTPUTTYPE"] == cmd._output_type
      assert cmd._output_type in fsl.Info.ftypes
  
      cmd = fsl.FSLCommand
      cmdinst = fsl.FSLCommand(command="junk")
      for out_type in fsl.Info.ftypes:
          cmd.set_default_output_type(out_type)
          assert cmd._output_type == out_type
          if out_type != fsl.Info.output_type():
              #  Setting class outputtype should not effect existing instances
              assert cmdinst.inputs.output_type != out_type
  
file_path: nipype/nipype/interfaces/fsl/tests/test_base.py
imports: import os
  import nipype.interfaces.fsl
  from nipype.interfaces.base import InterfaceResult
  from nipype.interfaces.fsl import check_fsl, no_fsl
  import pytest
label_desc: Use image node_id 5 for calling a global function with example usage: test_FSLCommand2() without return types