code: def test_Proj_thresh():
      proj = fsl.ProjThresh()
  
      # make sure command gets called
      assert proj.cmd == "proj_thresh"
  
      # test raising error with mandatory args absent
      with pytest.raises(ValueError):
          proj.run()
  
      # .inputs based parameters setting
      proj.inputs.volumes = ["vol1", "vol2", "vol3"]
      proj.inputs.threshold = 3
      assert proj.cmdline == "proj_thresh vol1 vol2 vol3 3"
  
      proj2 = fsl.ProjThresh(threshold=10, volumes=["vola", "volb"])
      assert proj2.cmdline == "proj_thresh vola volb 10"
  
      # .run based parameters setting
      proj3 = fsl.ProjThresh()
      results = proj3.run(volumes=["inp1", "inp3", "inp2"], threshold=2)
      assert results.runtime.cmdline == "proj_thresh inp1 inp3 inp2 2"
      assert results.runtime.returncode != 0
      assert isinstance(results.interface.inputs.volumes, list)
      assert results.interface.inputs.threshold == 2
  
file_path: nipype/nipype/interfaces/fsl/tests/test_dti.py
imports: import os
  import nipype.interfaces.fsl.dti
  from nipype.interfaces.fsl import Info, no_fsl
  from nipype.interfaces.base import Undefined
  import pytest
  from nipype.testing.fixtures import create_files_in_directory
label_desc: Use image node_id 4 for calling a global function with example usage: test_Proj_thresh() without return types