def METHOD_NAME(tmp_path, cm_fn_tuple):
    path = tmp_path / "dne_path"
    with pytest.raises(MlflowException, match=f"with path '{path}' does not exist"):
        _infer_artifact_type_and_ext("test_artifact", path, cm_fn_tuple)