@testing.for_all_dtypes()
    @testing.numpy_cupy_raises()
    def test_shape_mismatch(self, xp, dtype):
        a = testing.shaped_arange(self.shape, xp, dtype)
        i = testing.shaped_arange(self.indices, xp, numpy.int32) % 3
        o = testing.shaped_arange(self.out_shape, xp, dtype)
        wrap_take(a, i, out=o)
dataset/ETHPy150Open pfnet/chainer/tests/cupy_tests/core_tests/test_ndarray.py/TestNdarrayTakeErrorShapeMismatch.test_shape_mismatch/original