code: def test_T1_error():
      T1 = np.ones((3, 32, 32, 32))
      evac_model = EVACPlus()
      fake_affine = np.array([np.eye(4), np.eye(4), np.eye(4)])
      npt.assert_raises(ValueError, evac_model.predict, T1, fake_affine)
  
file_path: dipy/dipy/nn/tests/test_evac.py
imports: import pytest
  import numpy
  import numpy.testing
  from dipy.data import get_fnames
  from dipy.utils.optpkg import optional_package
label_desc: Use image node_id 3 for calling a global function with example usage: test_T1_error() without return types