code: def test_invalid_index_type(self):
      image = self._make_image((100,), cupy, cupy.int32)
      labels = testing.shaped_random(
          (100,), cupy, dtype=cupy.int32, scale=4
      )
      index = [1, 2, 3]
      op = getattr(cupyx.scipy.ndimage, self.op)
      with pytest.raises(TypeError):
          op(image, labels, index)
  
imports: import sys
  import warnings
  import numpy
  import pytest
  import cupy
  from cupy.cuda import runtime
  from cupy import testing
  from cupy import _util
  from cupy._core import _accelerator
  import cupyx.scipy.ndimage
label_desc: Use image node_id 14 for calling the TestStats obj's underlying member method code with example usage: obj.test_invalid_index_type() without return types