def METHOD_NAME(self, dtype):
    for xp in (numpy, cupy):
        a = testing.shaped_arange((), xp, dtype)
        b = testing.shaped_arange((1,), xp, dtype)
        with pytest.raises(ValueError):
            xp.correlate(a, b, mode=self.mode)