def METHOD_NAME() -> None:
    with pytest.raises(ValidationError) as error:
        RelatedResource(
            __root__={
                "prefect.resource.id": "my.unique.resource",
                "prefect.resource.role": None,
            }
        )
    assert error.value.errors() == [
        {
            "loc": ("__root__",),
            "msg": "The prefect.resource.role label must be non-empty",
            "type": "value_error",
        },
    ]