code: def define_config():
      """Create and define the fields of the configuration object."""
      config = Configuration()
      define_storage_config(config)
      define_experiment_config(config)
      define_worker_config(config)
      define_evc_config(config)
      define_frontends_uri_config(config)
  
      config.add_option(
          "user_script_config",
          option_type=str,
          default="config",
          deprecate=dict(
              version="v0.3", alternative="worker.user_script_config"
          ),
      )
  
      config.add_option(
          "debug",
          option_type=bool,
          default=False,
          help="Turn Oríon into debug mode. Storage will be overridden to in-memory EphemeralDB.",
      )
  
      return config
  
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 1 for calling a global function with example usage: define_config() and returns: config