code: def add_subparser(parser):
      """Add the subparser that needs to be used for this command"""
      upgrade_db_parser = parser.add_parser(
          "upgrade",
          help=SHORT_DESCRIPTION,
          description=SHORT_DESCRIPTION,
      )
  
      upgrade_db_parser.add_argument(
          "-c",
          "--config",
          type=argparse.FileType("r"),
          metavar="path-to-config",
          help="user provided " "orion configuration file",
      )
  
      upgrade_db_parser.add_argument(
          "-f", "--force", action="store_true", help="Don't prompt user"
      )
  
      upgrade_db_parser.set_defaults(func=main)
  
      return upgrade_db_parser
  
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 2 for calling a global function with example usage: add_subparser(parser) and returns: upgrade_db_parser