def METHOD_NAME(self, tag: str | Tag) -> t.Generator[str, None, None]:
    _tag = Tag.from_taglike(tag)
    item_path = _tag.path()
    if self._fs.exists(item_path):
        raise BentoMLException(
            f"Item '{_tag}' already exists in the store {self._fs}"
        )
    self._fs.makedirs(item_path)
    try:
        yield self._fs.getsyspath(item_path)
    except Exception:
        self._fs.removetree(item_path)
        raise
    # item generation is most likely successful, link latest path
    if (
        not self._fs.exists(_tag.latest_path())
        or self.get(_tag).creation_time >= self.get(_tag.name).creation_time
    ):
        with self._fs.open(_tag.latest_path(), "w") as latest_file:
            latest_file.write(_tag.version)