def mark_api_breaking(breaking_opset_version: ct.target):
    """
    The function is used to mark api breaking for MIL op unittests.
    For instance, if `test_op_1` is supposed to pass from iOS14 -> iOS16 and breaks starting from iOS17,
    we can use the following syntax:

    @makr_api_breaking(breaking_opsey_version=ct.target.iOS17)
    def test_op_1(self, backend, ...):
        pass

    Note that the test function must take `backend` with type of `BackendConfig` as an input.
    """
    def decorator(func):
        @functools.wraps(func)
        def wrapper(*args, **kwargs):
            backend = kwargs.get("backend", None)
            if backend is None:
                raise ValueError(
                    f'Function {func} decorated with mark_api_breaking must takes "backend" as an input.'
                )
            if backend.opset_version >= breaking_opset_version:
                pytest.skip(f"The test is breaking at opset version {breaking_opset_version}.")
            return func(*args, **kwargs)
        return wrapper

    return decorator

    The function is used to mark api breaking for MIL op unittests.
    For instance, if `test_op_1` is supposed to pass from iOS14 -> iOS16 and breaks starting from iOS17,
    we can use the following syntax:

    @makr_api_breaking(breaking_opsey_version=ct.target.iOS17)
    def test_op_1(self, backend, ...):
        pass

    Note that the test function must take `backend` with type of `BackendConfig` as an input.
    
coremltools/converters/mil/mil/ops/tests/testing_utils.py