code: def test_raises_error_on_invalid_bucket_name(
      bucket_name, should_raise
  ):
      if should_raise:
          with pytest.raises(ValueError):
              _ = S3Observer(
                  bucket=bucket_name, basedir=BASEDIR, region=REGION
              )
      else:
          _ = S3Observer(
              bucket=bucket_name, basedir=BASEDIR, region=REGION
          )
  
imports: import datetime
  import pytest
  import json
  import os
  from sacred.observers import S3Observer
label_desc: Use image node_id 16 for calling a global function with example usage: test_raises_error_on_invalid_bucket_name(bucket_name, should_raise) without return types