code: def define_storage_config(config):
      """Create and define the fields of the storage configuration."""
      storage_config = Configuration()
  
      storage_config.add_option(
          "type",
          option_type=str,
          default="legacy",
          env_var="ORION_STORAGE_TYPE",
      )
  
      config.storage = storage_config
  
      define_database_config(config.storage)
      # Backward compatibility, should be removed in v0.3.0, or not?
      config.database = config.storage.database
  
file_path: orion/src/orion/core/__init__.py
imports: import logging
  import os
  import socket
  from appdirs import AppDirs
  from orion.core.io.config import Configuration
  from ._version import get_versions
label_desc: Use image node_id 3 for calling a global function with example usage: define_storage_config(config) without return types