code: def test_read_and_write() -> None:
      artifact_id = f"test-{uuid.uuid4()}"
      dummy_content = b"Hello World"
  
      backend = Backoff(
          backend=InMemoryArtifactStore(),
          min_delay=0.1,
          multiplier=10,
          max_delay=10,
      )
      backend.write(artifact_id, io.BytesIO(dummy_content))
      with backend.open_reader(artifact_id) as f:
          actual = f.read()
      assert actual == dummy_content
  
imports: import io
  import uuid
  from optuna.artifacts import Backoff
  from .stubs import FailArtifactStore
  from .stubs import InMemoryArtifactStore
label_desc: Use image node_id 2 for calling a global function with example usage: test_read_and_write() without return types