def METHOD_NAME(capsys, args, errmsg):
    in_file = os.path.join(data_path, 'functional.nii')
    retval = main([in_file, os.devnull, *args])
    assert retval != 0
    captured = capsys.readouterr()
    assert errmsg in captured.out