code: def test_WarpImageMultiTransform_invaffine_1(change_dir, create_wimt):
      wimt = create_wimt
      wimt.inputs.invert_affine = [1]
      assert (
          wimt.cmdline
          == "WarpImageMultiTransform 3 diffusion_weighted.nii diffusion_weighted_wimt.nii -R functional.nii \
  -i func2anat_coreg_Affine.txt func2anat_InverseWarp.nii.gz dwi2anat_Warp.nii.gz dwi2anat_coreg_Affine.txt"
      )
  
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 4 for calling a global function with example usage: test_WarpImageMultiTransform_invaffine_1(change_dir, create_wimt) without return types