code: def test_realign4d_incompatible_args():
      pytest.raises(
          ValueError,
          wrong_call,
          slice_order=(0, 1, 2),
          interleaved=False,
      )
      pytest.raises(
          ValueError,
          wrong_call,
          slice_times=(0, 1, 2),
          slice_order="ascending",
      )
      pytest.raises(
          ValueError,
          wrong_call,
          slice_times=(0, 1, 2),
          slice_order=(0, 1, 2),
      )
      pytest.raises(
          ValueError,
          wrong_call,
          slice_times=(0, 1, 2),
          time_interp=True,
      )
      pytest.raises(
          ValueError,
          wrong_call,
          slice_times=(0, 1, 2),
          time_interp=False,
      )
      pytest.raises(ValueError, wrong_call, time_interp=True)
      pytest.raises(
          ValueError, wrong_call, slice_times=(0, 1, 2), tr_slices=1
      )
  
imports: import warnings
  import nibabel
  import numpy
  import pytest
  from nibabel import io_orientation
  from numpy.testing import assert_array_almost_equal, assert_array_equal
  from ....None import load_image
  from ....core.image.image_spaces import make_xyz_image, xyz_affine
  from ....io.nibcompat import get_header
  from ....testing import funcfile
  from ...slicetiming.timefuncs import st_02413, st_42031, st_43210
  from ..affine import Rigid
  from ..groupwise_registration import FmriRealign4d, Image4d, Realign4d, Realign4dAlgorithm, SpaceRealign, SpaceTimeRealign, make_grid, resample4d
label_desc: Use image node_id 11 for calling a global function with example usage: test_realign4d_incompatible_args() without return types