code: def test_set_matlabcmd():
      default_script_file = (
          clean_workspace_and_get_default_script_file()
      )
  
      mi = mlab.MatlabCommand()
      mi.set_default_matlab_cmd("foo")
      assert not os.path.exists(
          default_script_file
      ), "scriptfile should not exist."
      assert mi._default_matlab_cmd == "foo"
      mi.set_default_matlab_cmd(matlab_cmd)
  
file_path: nipype/nipype/interfaces/tests/test_matlab.py
imports: import os
  import pytest
  import nipype.interfaces.matlab
label_desc: Use image node_id 6 for calling a global function with example usage: test_set_matlabcmd() without return types