def METHOD_NAME(self):
    for xp in (numpy, cupy):
        x = xp.arange(100).reshape(10, 10)
        assert xp.shares_memory(x[0::2], x[1::3]) is True
        assert xp.shares_memory(x[0::2], x[1::4]) is False
        assert xp.shares_memory(x[0::2], x[::, 1::2]) is True