def METHOD_NAME(
    client: TestClient,
    project_name,
    name,
    object_update,
    object_url_path,
    additive=False,
    reference="latest",
):
    patch_mode = "replace"
    if additive:
        patch_mode = "additive"
    headers = {mlrun.common.schemas.HeaderNames.patch_mode: patch_mode}
    response = client.patch(
        f"projects/{project_name}/{object_url_path}/{name}/references/{reference}",
        json=object_update,
        headers=headers,
    )
    assert response.status_code == HTTPStatus.OK.value
    response = client.get(
        f"projects/{project_name}/{object_url_path}/{name}/references/{reference}"
    )
    return response.json()