def test_rank_0_update_early_error_out():
        """
        Backend does not support rank-0 update for the slice_update op.
        coremltools should early error out until this radar is fixed:
        rdar://128221986 ([Feature][Slice_update] The backends is not supporting scalar update for the slice_update op)
        """
        with pytest.raises(
            ValueError, match="rank-0 'update' is not supported in 'slice_update' op"
        ):

            @mb.program(input_specs=[], opset_version=target.iOS18)
            def prog():
                return mb.slice_update(
                    x=[0.0, 0.0],
                    update=0.0,
                    begin=[0],
                    end=[1],
                    squeeze_mask=[True],
                )

        Backend does not support rank-0 update for the slice_update op.
        coremltools should early error out until this radar is fixed:
        rdar://128221986 ([Feature][Slice_update] The backends is not supporting scalar update for the slice_update op)
        
coremltools/converters/mil/mil/ops/tests/iOS18/test_tensor_transformation.py