L i NddlmZddlmZddlmZerddlmZGddeZy)) annotations)Protocol) TYPE_CHECKING)BinaryIOc(eZdZdZddZddZddZy) ArtifactStorea[A protocol defining the interface for an artifact backend. The methods defined in this protocol are not supposed to be directly called by library users. An artifact backend is responsible for managing the storage and retrieval of artifact data. The backend should provide methods for opening, writing and removing artifacts. cy)aOpen the artifact identified by the artifact_id. This method should return a binary file-like object in read mode, similar to ``open(..., mode="rb")``. If the artifact does not exist, an :exc:`~optuna.artifacts.exceptions.ArtifactNotFound` exception should be raised. Args: artifact_id: The identifier of the artifact to open. Returns: BinaryIO: A binary file-like object that can be read from. Nself artifact_ids `/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/optuna/artifacts/_protocol.py open_readerzArtifactStore.open_readers cy)zSave the content to the backend. Args: artifact_id: The identifier of the artifact to write to. content_body: The content to write to the artifact. Nr )r r content_bodys rwritezArtifactStore.write%s rcy)aPRemove the artifact identified by the artifact_id. This method should delete the artifact from the backend. If the artifact does not exist, an :exc:`~optuna.artifacts.exceptions.ArtifactNotFound` exception may be raised. Args: artifact_id: The identifier of the artifact to remove. Nr r s rremovezArtifactStore.remove.s rN)r strreturnr)r rrrrNone)r rrr)__name__ __module__ __qualname____doc__rrrr rrrr s    rrN) __future__rtypingrrrrr rrrs"" - H- r