    def get(self, name: str, version: str | None = None) -> ModelSchema:
        """Get a model from the remote model store

        Args:
            tag: The tag of the model to get

        Returns:
            The model
        """
        if version is None or version == "latest":
            res = self._client.v1.get_latest_model(name)
        else:
            res = self._client.v1.get_model(name, version)
        if res is None:
            raise NotFound(f'Model "{name}:{version}" not found')
        return res
Get a model from the remote model store

Args:
tag: The tag of the model to get

Returns:
The model
src/bentoml/_internal/cloud/model.py