code: def test_WarpImageMultiTransform_invaffine_wrong(
      change_dir, create_wimt
  ):
      wimt = create_wimt
      wimt.inputs.invert_affine = [3]
      with pytest.raises(Exception):
          assert wimt.cmdline
  
file_path: nipype/nipype/interfaces/ants/tests/test_resampling.py
imports: from nipype.interfaces.ants import WarpImageMultiTransform, WarpTimeSeriesImageMultiTransform
  import os
  import pytest
label_desc: Use image node_id 6 for calling a global function with example usage: test_WarpImageMultiTransform_invaffine_wrong(change_dir, create_wimt) without return types