def METHOD_NAME(write_path: str):
    """Check if the write path is valid."""
    if "latest" in write_path:
        raise ValueError(
            "Cannot write to a path that contains 'latest'. That is reserved for the latest metadata file and its direct transformations"
        )