code: def update_db_config(config):
      """Merge DB config back into storage config"""
      config.setdefault("storage", orion.core.config.storage.to_dict())
      if "database" in config:
          log.debug("Updating db config for backward compatibility")
          config["storage"] = {"type": "legacy"}
          config["storage"]["database"] = config.pop("database")
          log.debug(pprint.pformat(config["storage"]))
  
file_path: orion/src/orion/core/utils/backward.py
imports: import copy
  import logging
  import pprint
  import orion.core
  from orion.core.io.orion_cmdline_parser import OrionCmdlineParser
  from orion.core.worker.trial import Trial
label_desc: Use image node_id 6 for calling a global function with example usage: update_db_config(config) without return types