def METHOD_NAME(consistent):
    mask0 = SymbolicMask(5, [SymbolicMaskProducer(4, 2)])
    mask1 = SymbolicMask(5, [SymbolicMaskProducer(4, 2 if consistent else 4)])
    masks = [mask0, mask1]
    if not consistent:
        with pytest.raises(AssertionError):
            SymbolicMaskProcessor.elementwise_mask_propagation(masks)
        return
    result = SymbolicMaskProcessor.elementwise_mask_propagation(masks)
    assert result.shape[0] == 5
    assert len(result.mask_producers) == 1
    assert result.mask_producers[0].id == 4
    assert result.mask_producers[0].sparse_multiplier == 2