code: def get_artifact_store(config) -> StorageHandler:
      storage_type: str = config["type"].lower()
  
      factory: StorageHandlerFactory = (
          StorageHandlerFactory.get_factory()
      )
      if storage_type == "s3":
          handler = factory.get_handler(StorageType.storageS3, config)
          return handler
      if storage_type == "local":
          handler = factory.get_handler(
              StorageType.storageLocal, config
          )
          return handler
      raise ValueError("Unknown storage type: " + storage_type)
  
file_path: studio/studio/db_providers/db_provider_setup.py
imports: import os
  import yaml
  import pyhocon
  from studio.db_providers.local_db_provider import LocalDbProvider
  from studio.db_providers.s3_provider import S3Provider
  from studio.storage.storage_handler import StorageHandler
  from studio.storage.storage_handler_factory import StorageHandlerFactory
  from studio.storage.storage_setup import setup_storage, get_storage_db_provider, set_storage_verbose_level
  from studio.storage.storage_type import StorageType
  from studio.util import logs
  from studio.util.util import parse_verbosity
label_desc: Use image node_id 2 for calling a global function with example usage: get_artifact_store(config) and returns: handler, handler