def METHOD_NAME(self, resource: Resource) -> Generator[Path, None, None]:
    """Provides the data of a persisted `Resource`.
    Args:
        resource: The `Resource` whose persisted should be accessed.
    Returns:
        A directory containing the data of the persisted `Resource`.
    Raises:
        ValueError: In case no persisted data for the given `Resource` exists.
    """
    ...