code: def test_remove(
      init_mock_client: Annotated[tuple[str, S3Client], pytest.fixture]
  ) -> None:
      bucket_name, s3_client = init_mock_client
      backend = Boto3ArtifactStore(bucket_name)
  
      artifact_id = "dummy-uuid"
      backend.write(artifact_id, io.BytesIO(b"Hello"))
      objects = s3_client.list_objects(Bucket=bucket_name)["Contents"]
      assert (
          len([obj for obj in objects if obj["Key"] == artifact_id])
          == 1
      )
  
      backend.remove(artifact_id)
      objects = s3_client.list_objects(Bucket=bucket_name).get(
          "Contents", []
      )
      assert (
          len([obj for obj in objects if obj["Key"] == artifact_id])
          == 0
      )
  
file_path: optuna/tests/artifacts_tests/test_boto3.py
imports: from __future__ import annotations
  import io
  from typing import TYPE_CHECKING
  import boto3
  from moto import mock_s3
  import pytest
  from optuna.artifacts import Boto3ArtifactStore
  from optuna.artifacts.exceptions import ArtifactNotFound
label_desc: Use image node_id 3 for calling a global function with example usage: test_remove(init_mock_client) without return types