code: def test_s3_faulty_lifecycle(
      monkeypatch: monkeypatch.MonkeyPatch,
  ) -> None:
      monkeypatch.setattr("boto3.client", s3.s3_faulty_client)
      env = test_util.get_dummy_env()
      manager = tensorboard.build(
          env.det_cluster_id,
          env.det_experiment_id,
          env.det_trial_id,
          default_conf,
          async_upload=False,
      )
  
      with pytest.raises(exceptions.S3UploadFailedError):
          manager.sync()
  
file_path: determined/harness/tests/tensorboard/test_s3.py
imports: import copy
  import os
  import pathlib
  from typing import Optional
  import pytest
  from _pytest import monkeypatch
  from boto3 import exceptions
  from determined import tensorboard
  from tests import s3
  from tests.tensorboard import test_util
label_desc: Use image node_id 5 for calling a global function with example usage: test_s3_faulty_lifecycle(monkeypatch) without return types