code: def gen_test_bucket(bucket_name):
      conn = _get_bucket_connection(S3_ADMIN_CREDENTIAL)
      # assure we have none
      try:
          bucket = conn.get_bucket(bucket_name)
          lgr.info("Deleting existing bucket %s", bucket.name)
          prune_and_delete_bucket(bucket)
      except:  # MIH: MemoryError?
          # so nothing to worry about
          pass
      finally:
          pass
  
      return conn.create_bucket(bucket_name)
  
imports: import mimetypes
  from os.path import splitext
  import re
  from datalad.support.network import urlquote, URL
  import logging
  import datalad.log
  from datalad.support.exceptions import CapturedException, DownloadError, AccessDeniedError, AccessPermissionExpiredError, AnonymousAccessDeniedError
  from datalad.utils import try_multiple_dec
  from urllib.request import urlopen, Request
label_desc: Use image node_id 9 for calling a global function with example usage: gen_test_bucket(bucket_name) and returns: conn