def METHOD_NAME(self):
    for i in [4096, 2 * 4096, 3 * 4096]:
        Image.core.set_block_size(i)
        block_size = Image.core.get_block_size()
        assert block_size == i
        # Try to construct new image
        Image.new("RGB", (10, 10))
    with pytest.raises(ValueError):
        Image.core.set_block_size(0)
    with pytest.raises(ValueError):
        Image.core.set_block_size(-1)
    with pytest.raises(ValueError):
        Image.core.set_block_size(4000)