def validate_minimum_deployment_target(
    minimum_deployment_target: ct.target, backend: Tuple[str, str]
):
    """
    Validates the minimum deployment target based on backend and macOS version. Only used in tests.
    """
    if minimum_deployment_target >= ct.target.iOS15 and backend[0] != "mlprogram":
        pytest.skip("IOS15+ target only compatible with mlprogram.")
    if not macos_compatible_with_deployment_target(minimum_deployment_target):
        pytest.skip(
            f"IOS{minimum_deployment_target} target is not runnable on this macOS {coremltoolsutils._macos_version()}"
        )

    Validates the minimum deployment target based on backend and macOS version. Only used in tests.
    
coremltools/converters/mil/testing_utils.py