def METHOD_NAME(tested_class):
    dim = Dimension([1, 2, 3])
    vec = tested_class(dim)
    for h in range(vec.nirrep()):
        for i in range(vec.dim(h)):
            vec.set(h, i, 10 * h + i)
    my_slice = Slice(Dimension([0, 1, 0]), Dimension([0, 2, 1]))
    block = vec.get_block(my_slice)
    assert block.dimpi() == Dimension([0, 1, 1])
    assert block.get(1, 0) == 11
    assert block.get(2, 0) == 20