def METHOD_NAME(dvc, key):
    stage = Stage(dvc)
    with pytest.raises(ValueError, match=f"'{type(key).__name__}' not supported."):
        output.load_from_pipeline(stage, [key], "outs")
    with pytest.raises(
        ValueError,
        match=f"Expected dict for 'key', got: '{type(key).__name__}'",
    ):
        output.load_from_pipeline(stage, [{"key": key}], "outs")