code: def upgrade_db_specifics(storage):
      """Make upgrades that are specific to some backends"""
      if isinstance(storage, Legacy):
          database = storage._db  # pylint: disable=protected-access
          print("Updating indexes...")
          update_indexes(database)
          if isinstance(database, PickledDB):
              print("Updating pickledb scheme...")
              upgrade_pickledb(database)
          elif isinstance(database, MongoDB):
              print("Updating mongodb scheme...")
              upgrade_mongodb(database)
  
file_path: orion/src/orion/core/cli/db/upgrade.py
imports: import argparse
  import logging
  import sys
  from orion.core.io import experiment_builder
  from orion.core.io.config import ConfigurationError
  from orion.core.io.database.ephemeraldb import EphemeralCollection
  from orion.core.io.database.mongodb import MongoDB
  from orion.core.io.database.pickleddb import PickledDB
  from orion.storage.legacy import Legacy
label_desc: Use image node_id 4 for calling a global function with example usage: upgrade_db_specifics(storage) without return types