code: def artifact_store(
      tmp_path: pathlib.PurePath, request: pytest.FixtureRequest
  ) -> ArtifactStore:
      if request.param == "FileSystem":
          return FileSystemArtifactStore(str(tmp_path))
      assert False, f"Unknown artifact store: {request.param}"
  
file_path: optuna/tests/artifacts_tests/test_upload_artifact.py
imports: from __future__ import annotations
  import json
  import pathlib
  import pytest
  import optuna
  from optuna.artifacts import FileSystemArtifactStore
  from optuna.artifacts import upload_artifact
  from optuna.artifacts._protocol import ArtifactStore
  from optuna.artifacts._upload import ArtifactMeta
label_desc: Use image node_id 1 for calling a global function with example usage: artifact_store(tmp_path, request) and returns: FileSystemArtifactStore