code: def observer(basedir=None):
      if basedir is None:
          basedir = BASEDIR
  
      _observer = GoogleCloudStorageObserver(
          bucket=BUCKET, basedir=basedir
      )
  
      yield _observer
  
      # Make sure to delete directory afterwards
      _delete_bucket_directory(_observer.bucket, basedir)
  
imports: import pytest
  import datetime
  import os
  import json
  from sacred.observers import GoogleCloudStorageObserver
label_desc: Use image node_id 4 for calling a global function with example usage: observer(basedir) without return types