def METHOD_NAME(
    pass_run_id, is_single_file, target_path, expected_path
):
    run_id = "run_id_val" if pass_run_id else None
    if not expected_path:
        with pytest.raises(mlrun.errors.MLRunInvalidArgumentError):
            TargetPathObject(target_path, run_id, is_single_file)
    else:
        tp_obj = TargetPathObject(target_path, run_id, is_single_file)
        assert (
            mlrun.model.RUN_ID_PLACE_HOLDER in tp_obj.get_templated_path()
        ) == pass_run_id
        assert mlrun.model.RUN_ID_PLACE_HOLDER not in tp_obj.get_absolute_path()
        assert tp_obj.get_absolute_path() == expected_path