code: def get_config_for_bucket(base_url, extra_configurations=None):
      config_list = S3BucketConfigurations.from_config(
          config.get("aws.s3")
      )
  
      for configuration in extra_configurations or []:
          config_list.add_config(configuration)
  
      return config_list.get_config_by_uri(base_url)
  
imports: import logging
  import os
  import sys
  from os.path import expandvars, expanduser
  from ..backend_api import load_config
  from ..backend_config import Config
  from ..backend_config.bucket_config import S3BucketConfigurations
  from .defs import *
  from .remote import running_remotely_task_id
  from ..utilities.proxy_object import LazyEvalWrapper
label_desc: Use image node_id 4 for calling a global function with example usage: get_config_for_bucket(base_url, extra_configurations) and returns: config_list